aboutsummaryrefslogtreecommitdiff
path: root/templates/_repo_header.html.tmpl
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-11 23:55:26 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-11 23:55:26 +0800
commit6d4d140058af748b03ce808a2bd4463ded2ec058 (patch)
treefd9cc2f1a247545fabdbb79712c346b3e38347eb /templates/_repo_header.html.tmpl
parentrepo_commit: Reformat (diff)
downloadforge-6d4d140058af748b03ce808a2bd4463ded2ec058.tar.gz
forge-6d4d140058af748b03ce808a2bd4463ded2ec058.tar.zst
forge-6d4d140058af748b03ce808a2bd4463ded2ec058.zip
*.html: Add a simple repo header
Diffstat (limited to 'templates/_repo_header.html.tmpl')
-rw-r--r--templates/_repo_header.html.tmpl7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/_repo_header.html.tmpl b/templates/_repo_header.html.tmpl
new file mode 100644
index 0000000..1dd14f9
--- /dev/null
+++ b/templates/_repo_header.html.tmpl
@@ -0,0 +1,7 @@
+{{- define "repo_header" -}}
+<a href="/g/{{ .group_name }}/">{{ .group_name }}</a>
+/
+<a href="/g/{{ .group_name }}/repos/">repos</a>
+/
+<a href="/g/{{ .group_name }}/repos/{{ .repo_name }}/">{{ .repo_name }}</a>
+{{- end -}}