hscc

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

commit 333960b9afc63e96b1c1cfad5b3a225b55fbda5e
parent dce596b4d4671050624af47313aabf6ae881046a
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Thu,  9 Sep 2021 22:20:28 -0400

Add the last publication on home page

Diffstat:
Mtemplates/index.html | 13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/templates/index.html b/templates/index.html @@ -1 +1,14 @@ +<% local inspect = require 'inspect' %> +<% table.sort(list, function(a , b) return tonumber(site[a].time_created) > tonumber(site[b].time_created) end) %> +<% --print(inspect(site[list[1]])) %> + <%- content -%> +<aside class="main__aside"> + <small>Dernière publication</small> + <p> + <a + href="<%= site[list[1]].rellink %>"> + <%- site[list[1]].title -%> + </a> + </p> +</aside>