commit 5a8654138bbfb66aa83af6bd56223f4d556210ee
parent bc0dcd9411c30495a0ee43b85b4ebcaf8180ad75
Author: Hugo Soucy <hugo@soucy.cc>
Date: Sun, 26 Sep 2021 10:35:23 -0400
Update templates according to the recent satelito changes
Diffstat:
3 files changed, 12 insertions(+), 13 deletions(-)
diff --git a/templates/default-index.html b/templates/default-index.html
@@ -5,10 +5,7 @@
<% if children then %>
<ol>
- <% -- Desc sorting children %>
- <% table.sort(children, function(a , b) return tonumber(a.time_created) > tonumber(b.time_created) end) %>
-
- <% for i, child in ipairs(children) do %>
+ <% for _, child in ipairs(children) do %>
<li>
<a href="<%= child.rellink -%>"><%= child.title -%></a> —
<time datetime="<%= child.date -%>T<%= child.datetime -%>"><%= child.date -%></time>
diff --git a/templates/feed.xml.html b/templates/feed.xml.html
@@ -15,17 +15,16 @@
<uri><%- author.uri -%></uri>
</author>
- <% if list then %>
- <% table.sort(list, function(a , b) return tonumber(site[a].time_created) > tonumber(site[b].time_created) end) %>
- <% for i, child in ipairs(list) do %>
+ <% if children then %>
+ <% for i, child in ipairs(children) do %>
<entry>
- <title><%- site[child].title -%></title>
- <id><%- site[child].id -%></id>
- <link href="<%= site[child].permalink -%>" hreflang="<%= site[child].language -%>" rel="alternate" type="text/html" />
- <published><%= site[child].date -%>T<%= site[child].datetime -%>Z</published>
- <updated><%- os.date('%Y-%m-%dT%H:%M:%S', site[child].time_modification) -%>Z</updated>
+ <title><%- child.title -%></title>
+ <id><%- child.id -%></id>
+ <link href="<%= child.permalink -%>" hreflang="<%= child.language -%>" rel="alternate" type="text/html" />
+ <published><%= child.date -%>T<%= child.datetime -%>Z</published>
+ <updated><%- os.date('%Y-%m-%dT%H:%M:%S', child.time_modification) -%>Z</updated>
<content type="html">
- <%= site[child].content -%>
+ <%= child.content -%>
</content>
</entry>
<% end %>
diff --git a/templates/navigation.html b/templates/navigation.html
@@ -5,5 +5,8 @@
<li class="nav__item">
<a href="/" rel="index">Home</a>
</li>
+ <li class="nav__item">
+ <a href="/filmography">Filmography</a>
+ </li>
</ol>
</nav>