diff --git a/docs/build.js b/docs/build.js index 3b8c3db7..dd3435ef 100644 --- a/docs/build.js +++ b/docs/build.js @@ -134,6 +134,7 @@ const filledRedirectTemplate = fillTemplate(redirectTemplate, { fs.writeFileSync(path.join('build', 'index.html'), filledRedirectTemplate); +const currentYear = new Date().getFullYear(); // Iterate over readme.md files and print filled templates for (const { year, day, name, notes, code, illustration } of findReadmes('.')) { const filledHtml = fillTemplate(template, { @@ -142,6 +143,7 @@ for (const { year, day, name, notes, code, illustration } of findReadmes('.')) { 'problem-name': `${name}`, 'year-picker': generateYearPicker(year,day, yearToDays), 'day-picker': generateDayPicker(year, day, yearToDays), + 'current-year': `${currentYear}`, notes, code, }); diff --git a/docs/template.html b/docs/template.html index 4bc23fa5..68dbd2a4 100644 --- a/docs/template.html +++ b/docs/template.html @@ -245,7 +245,7 @@

{{problem-name}}

- © + © {{current-year}} Advent of Code is a registered trademark in the US Images provided by Bing image creator