aboutsummaryrefslogtreecommitdiff
path: root/templates/repo_tree_file.html.tmpl
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-10 22:05:53 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-10 22:05:53 +0800
commit311befc9ba95b2d2f7db7a5efa2f912a5fa85879 (patch)
tree8700ce204fb4cbc38ee9791b4a5711fde5ccaffd /templates/repo_tree_file.html.tmpl
parentfooter.html: Add link to Lindenii Forge (diff)
downloadforge-311befc9ba95b2d2f7db7a5efa2f912a5fa85879.tar.gz
forge-311befc9ba95b2d2f7db7a5efa2f912a5fa85879.tar.zst
forge-311befc9ba95b2d2f7db7a5efa2f912a5fa85879.zip
*.html.tmpl: Rename from *.html
Diffstat (limited to 'templates/repo_tree_file.html.tmpl')
-rw-r--r--templates/repo_tree_file.html.tmpl19
1 files changed, 19 insertions, 0 deletions
diff --git a/templates/repo_tree_file.html.tmpl b/templates/repo_tree_file.html.tmpl
new file mode 100644
index 0000000..7012cb1
--- /dev/null
+++ b/templates/repo_tree_file.html.tmpl
@@ -0,0 +1,19 @@
+{{- define "repo_tree_file" -}}
+<!DOCTYPE html>
+<html>
+ <head>
+ {{ template "head_common" . }}
+ <link rel="stylesheet" href="/static/chroma.css" />
+ <title>{{ .group_name }}/repos/{{ .repo_name }}/{{ .path_spec }} &ndash; Lindenii Forge</title>
+ </head>
+ <body class="repo-tree-file">
+ <p>
+ /{{ .path_spec }}
+ </p>
+ {{ .file_contents }}
+ <footer>
+ {{ template "footer" . }}
+ </footer>
+ </body>
+</html>
+{{- end -}}