local navigation_table = { {'home', '/index.html'}, {'projects', '/projects/'}, {'git', '/git'}, {'about', '/about.html'}, } local navlinks = '' for _, link in pairs(navigation_table) do navlinks = navlinks .. string.format('%s ', link[2], link[1]) end navlinks = string.sub(navlinks, 1, -4) local navigation = string.format('', navlinks) return function(html, page_tbl) local html = string.gsub( html, '

(.-)

', '

%1
================================

' ) local fmt = [[ %s %s
%s
]] return string.format( fmt, string.format('%s | %s', page_tbl.title, argent.config.site_name), navigation, html) end