Skip to content

Commit

Permalink
fix(footer): get current year
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed Mar 3, 2022
1 parent 2e12833 commit 5aebb12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module.exports = function (eleventyConfig) {
eleventyConfig.addPlugin(a11yCSS)

eleventyConfig.addPassthroughCopy('site/static')
eleventyConfig.addShortcode("year", () => `${new Date().getFullYear()}`);

return {
dir: {
Expand Down
2 changes: 1 addition & 1 deletion site/_includes/partials/footer.njk
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{% include "icons/external-link.svg" %}
</a>
</p>
<p>® 2014 —&nbsp;2020 <strong>Gaël Poupard</strong></p>
<p>® 2014 —&nbsp;{% year %} <strong>Gaël Poupard</strong></p>
<p>This project is distributed under license <a href="https://opensource.org/licenses/MIT" title="The MIT licence">MIT</a> and <a href="https://creativecommons.org/licenses/by/3.0/fr/" hreflang="fr" title="Explications de la licence">CC BY 3.0 FR</a>. <a class="end" href="#top">Back to top</a></p>
</div>
</footer>

0 comments on commit 5aebb12

Please sign in to comment.