diff --git a/template/footer.htm b/template/footer.htm index 635f9d4..3ba0cf7 100644 --- a/template/footer.htm +++ b/template/footer.htm @@ -34,43 +34,63 @@ local function getLink(nav) local link = config[nav] return (link ~= "none") and link or nil end + +local num_links = 0 +for i = 1, 6 do + local nav_key = 'nav_0' .. i + local link = getLink(nav_key) + if link then + num_links = num_links + 1 + end +end + +local link_width = string.format("calc(100%% / %d)", num_links) %> - - - -
- + + + + + + +