hscc

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

commit caefaa7d5446ffccf0ba6d47eaf72f956d2fb7d3
parent c132ff1e2ebf6adb01b332af258b93d433fc7e1f
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Sun,  3 Oct 2021 20:11:31 -0400

Add divs and classes

Diffstat:
Mtemplates/tags.html | 22+++++++++++++---------
1 file changed, 13 insertions(+), 9 deletions(-)

diff --git a/templates/tags.html b/templates/tags.html @@ -2,20 +2,24 @@ <%- content %> <% if tags_children then %> - <dl class="tags"> + <dl class="tags-list"> <% local tags_keys = {} %> <% for k in pairs(tags_children) do table.insert(tags_keys, k) end %> <% table.sort(tags_keys) %> <% for _, tagkey in ipairs(tags_keys) do %> - <dt id="<%= tagkey:gsub("%s+", "-") -%>"><%= tagkey -%></dt> - <% for _, tb in ipairs(tags_children[tagkey]) do %> - <dd> - <a href="<%= tb.rellink -%>"> - <%= tb.title -%> - </a> - </dd> - <% end %> + <div class="tags-list__tag"> + <dt class="tags-list__keyword" id="<%= tagkey:gsub("%s+", "-") -%>"> + <%= tagkey -%> + </dt> + <% for _, tb in ipairs(tags_children[tagkey]) do %> + <dd class="tags-list__entry"> + <a href="<%= tb.rellink -%>"> + <%= tb.title -%> + </a> + </dd> + <% end %> + </div> <% end %> </dl> <% end %>