diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/index.html | 34 | ||||
| -rw-r--r-- | templates/page.html | 34 |
2 files changed, 68 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..016c2ca --- /dev/null +++ b/templates/index.html @@ -0,0 +1,34 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <link rel="icon" type="image/png" href="favicon.png"> + <title>{{ .Title }}</title> + <meta name="description" content="{{ .Description }}"> + <style> + body { font-family: Verdana, sans-serif; } + td { padding: 0.5em 1.5em; } + td:first-child a { white-space: nowrap; } + </style> + </head> + <body> + <p>{{ .Title }} | {{ .Description }}</p> + <hr> + <table> + <tr> + <td valign="top"> + {{ range .Sidebar }} + <a href="{{ .Path }}">› {{ .Name }}</a><br> + {{ end }} + </td> + <td valign="top"> + <main> + {{ .Content }} + </main> + </td> + </tr> + </table> + </body> +</html> + diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..b117576 --- /dev/null +++ b/templates/page.html @@ -0,0 +1,34 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <link rel="icon" href="images/favicon.ico"> + <title>{{ .Title }}</title> + <meta name="description" content="{{ .Description }}"> + <style> + body { font-family: Verdana, sans-serif; } + td { padding: 0.5em 1.5em; } + td:first-child a { white-space: nowrap; } + </style> + </head> + <body> + <p>{{ .Title }} | {{ .Description }}</p> + <hr> + <table> + <tr> + <td valign="top"> + {{ range .Sidebar }} + <a href="{{ .Path }}">› {{ .Name }}</a><br> + {{ end }} + </td> + <td valign="top"> + <main> + {{ .Content }} + </main> + </td> + </tr> + </table> + </body> +</html> + |
