hscc

Soure code of <https://hugo.soucy.cc>.
git clone git://soucy.cc/hscc.git
Log | Files | Refs

commit 39112dc5dd62bff0669934db842dc2c1b173eb41
parent 333960b9afc63e96b1c1cfad5b3a225b55fbda5e
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Thu,  9 Sep 2021 22:21:07 -0400

Add dynamic date in navigation

Diffstat:
Mtemplates/navigation.html | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/templates/navigation.html b/templates/navigation.html @@ -14,11 +14,11 @@ </li> <li class="nav__item"> <a - <% if rellink == '2021/' then %> + <% if rellink == os.date('%Y')..'/' then %> aria-current="page" <% end %> class="nav__link" - href="/2021">Publications</a> + href="/<%= os.date('%Y') -%>">Publications</a> </li> <li class="nav__item"> <a