commit d0b1491
0uppy
·
2026-05-11 14:12:10 +0000 UTC
parent 57293e7
templates: updated the templates to have a werc-like layout (le sidebar)
2 files changed,
+44,
-4
+17,
-4
1@@ -7,8 +7,21 @@
2 <meta name="description" content="{{ .Description }}">
3 </head>
4 <body>
5- <main>
6- {{ .Content }}
7- </main>
8+ <p>{{ .Title }} | words words words words words</p>
9+ <hr>
10+ <table>
11+ <tr>
12+ <td valign="top">
13+ {{ range .Sidebar }}
14+ <a href="{{ .Path }}">› {{ .Name }}</a><br>
15+ {{ end }}
16+ </td>
17+ <td valign="top">
18+ <main>
19+ {{ .Content }}
20+ </main>
21+ </td>
22+ </tr>
23+ </table>
24 </body>
25-<html>
26+</html>
+27,
-0
1@@ -0,0 +1,27 @@
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.0">
7+ <title>{{ .Title }}</title>
8+ <meta name="description" content="{{ .Description }}">
9+ </head>
10+ <body>
11+ <p>{{ .Title }} | words words words words words</p>
12+ <hr>
13+ <table>
14+ <tr>
15+ <td valign="top">
16+ {{ range .Sidebar }}
17+ <a href="{{ .Path }}">› {{ .Name }}</a><br>
18+ {{ end }}
19+ </td>
20+ <td valign="top">
21+ <main>
22+ {{ .Content }}
23+ </main>
24+ </td>
25+ </tr>
26+ </table>
27+ </body>
28+</html>