From dd0017446dcd605b3670784336d38c1083895abe Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 18 Aug 2025 05:10:14 +0800 Subject: Start doing the group index page... --- forged/templates/_group_view.tmpl | 8 ++++---- forged/templates/group.tmpl | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'forged/templates') 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 */}} {{- define "group_view" -}} -{{- if .subgroups -}} +{{- if .Subgroups -}} @@ -15,7 +15,7 @@ - {{- range .subgroups -}} + {{- range .Subgroups -}}
{{- .Name -}} @@ -28,7 +28,7 @@
{{- end -}} -{{- if .repos -}} +{{- if .Repos -}} @@ -40,7 +40,7 @@ - {{- range .repos -}} + {{- range .Repos -}}
{{- .Name -}} 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 */}} {{- define "group" -}} -{{- $group_path := .group_path -}} +{{- $group_path := .BaseData.GroupPath -}} {{- template "head_common" . -}} - {{- range $i, $s := .group_path -}}{{- $s -}}{{- if ne $i (len $group_path) -}}/{{- end -}}{{- end }} – {{ .global.forge_title -}} + {{- range $i, $s := $group_path -}}{{- $s -}}{{- if ne $i (len $group_path) -}}/{{- end -}}{{- end }} – {{ .BaseData.Global.ForgeTitle -}} {{- template "header" . -}}
- {{- if .description -}} -

{{- .description -}}

+ {{- if .Description -}} +

{{- .Description -}}

{{- end -}} {{- template "group_view" . -}}
-- cgit v1.2.3