Mercurial Hosting > freedit
diff src/lib/Shared.luan @ 0:6a1e2749571d
start
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 15 Jun 2022 20:18:36 -0600 |
parents | |
children | fc3ee39d7764 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/lib/Shared.luan Wed Jun 15 20:18:36 2022 -0600 @@ -0,0 +1,33 @@ +local Luan = require "luan:Luan.luan" +local error = Luan.error +local Forum = require "site:/lib/Forum.luan" + + +local Shared = {} + +function Shared.head() +%> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <style> + @import "/site.css"; + </style> +<% +end + +function Shared.header() +%> + <div header> + <a href="/"><%=Forum.title%></a> + </div> +<% +end + +function Shared.footer() +%> + <div footer> + <a href="/config.html">Configuration</a> + </div> +<% +end + +return Shared