summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-11 14:18:39 +0530
committerLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-11 14:18:39 +0530
commitac6ca71f01885b3fff692b4b9ee36ed33965d396 (patch)
tree6270a3a3c849df8b6fcbd95f9930f39a239e4cfb /templates
parentab30497e169cd3bfcd122e668c3cdde6bd48305b (diff)
downloadlegit-ac6ca71f01885b3fff692b4b9ee36ed33965d396.tar.gz
legit-ac6ca71f01885b3fff692b4b9ee36ed33965d396.tar.bz2
legit-ac6ca71f01885b3fff692b4b9ee36ed33965d396.zip
routes: file content view
Diffstat (limited to '')
-rw-r--r--templates/file.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/file.html b/templates/file.html
new file mode 100644
index 0000000..2ccf1c6
--- /dev/null
+++ b/templates/file.html
@@ -0,0 +1,18 @@
+{{ define "file" }}
+<html>
+{{ template "head" . }}
+
+ <header>
+ <h1>{{ .meta.Title }}</h1>
+ <h2>{{ .meta.Description }}</h2>
+ </header>
+ <body>
+ {{ template "nav" . }}
+ <main>
+ <pre>
+ {{ .content }}
+ </pre>
+ </main>
+ </body>
+</html>
+{{ end }}