diff options
author | Runxi Yu <me@runxiyu.org> | 2025-08-18 05:10:14 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-08-18 05:10:14 +0800 |
commit | dd0017446dcd605b3670784336d38c1083895abe (patch) | |
tree | d9882611f6c38560c2490ef918ccfa46f09380c4 /forged/templates | |
parent | Make logging in work (diff) | |
download | forge-master.tar.gz forge-master.tar.zst forge-master.zip |
Diffstat (limited to '')
-rw-r--r-- | forged/templates/_group_view.tmpl | 8 | ||||
-rw-r--r-- | forged/templates/group.tmpl | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/forged/templates/_group_view.tmpl b/forged/templates/_group_view.tmpl index 92b6639..de5d45d 100644 --- a/forged/templates/_group_view.tmpl +++ b/forged/templates/_group_view.tmpl @@ -3,7 +3,7 @@ SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu <https://runxiyu.org> */}} {{- define "group_view" -}} -{{- if .subgroups -}} +{{- if .Subgroups -}} <table class="wide"> <thead> <tr> @@ -15,7 +15,7 @@ </tr> </thead> <tbody> - {{- range .subgroups -}} + {{- range .Subgroups -}} <tr> <td> <a href="{{- .Name | path_escape -}}/">{{- .Name -}}</a> @@ -28,7 +28,7 @@ </tbody> </table> {{- end -}} -{{- if .repos -}} +{{- if .Repos -}} <table class="wide"> <thead> <tr> @@ -40,7 +40,7 @@ </tr> </thead> <tbody> - {{- range .repos -}} + {{- range .Repos -}} <tr> <td> <a href="-/repos/{{- .Name | path_escape -}}/">{{- .Name -}}</a> diff --git a/forged/templates/group.tmpl b/forged/templates/group.tmpl index 3338f9b..68a0261 100644 --- a/forged/templates/group.tmpl +++ b/forged/templates/group.tmpl @@ -3,19 +3,19 @@ SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu <https://runxiyu.org> */}} {{- define "group" -}} -{{- $group_path := .group_path -}} +{{- $group_path := .BaseData.GroupPath -}} <!DOCTYPE html> <html lang="en"> <head> {{- template "head_common" . -}} - <title>{{- range $i, $s := .group_path -}}{{- $s -}}{{- if ne $i (len $group_path) -}}/{{- end -}}{{- end }} – {{ .global.forge_title -}}</title> + <title>{{- range $i, $s := $group_path -}}{{- $s -}}{{- if ne $i (len $group_path) -}}/{{- end -}}{{- end }} – {{ .BaseData.Global.ForgeTitle -}}</title> </head> <body class="group"> {{- template "header" . -}} <main> <div class="padding-wrapper"> - {{- if .description -}} - <p>{{- .description -}}</p> + {{- if .Description -}} + <p>{{- .Description -}}</p> {{- end -}} {{- template "group_view" . -}} </div> |