repos / pgit

static site generator for git
git clone https://github.com/picosh/pgit.git

pgit / html
Eric Bower · 25 Apr 24

base.layout.tmpl

 1{{define "base"}}
 2<!doctype html>
 3<html lang="en">
 4  <head>
 5    <meta charset='utf-8'>
 6    <meta name="viewport" content="width=device-width, initial-scale=1" />
 7    <title>{{template "title" .}}</title>
 8
 9    <meta name="keywords" content="git code forge repo repository" />
10
11    {{template "meta" .}}
12
13    <link rel="stylesheet" href="/vars.css" />
14    <link rel="stylesheet" href="/smol.css" />
15    <link rel="stylesheet" href="/main.css" />
16  </head>
17  <body>
18    <header>{{template "header" .}}</header>
19    <hr />
20    <main>{{template "content" .}}</main>
21    <hr />
22    <footer>{{template "footer" .}}</footer>
23  </body>
24</html>
25{{end}}