From bc41933d4f5e8b378ac544d9beaa03b2def925f8 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 07 Mar 2025 18:58:05 +0800 Subject: [PATCH] index, group: Escape path anchors Fixes: https://todo.sr.ht/~runxiyu/forge/1 --- templates/_group_view.tmpl | 4 ++-- templates/index.tmpl | 2 +- diff --git a/templates/_group_view.tmpl b/templates/_group_view.tmpl index 7b11f2236312ac4c6e6ef13c906c9ea510f41467..b914cf92813dd753e73a5da08be96c5ce4af6bf2 100644 --- a/templates/_group_view.tmpl +++ b/templates/_group_view.tmpl @@ -18,7 +18,7 @@ {{- range .subgroups }} - {{ .Name }} + {{ .Name }} {{ .Description }} @@ -43,7 +43,7 @@ {{- range .repos }} - {{ .Name }} + {{ .Name }} {{ .Description }} diff --git a/templates/index.tmpl b/templates/index.tmpl index 58aadc1686595960c73d6efa16dfc7ed79779899..8d787c943817055a16ce067e9ac4ac34224aa224 100644 --- a/templates/index.tmpl +++ b/templates/index.tmpl @@ -26,7 +26,7 @@ {{- range .groups }} - {{ .Name }} + {{ .Name }} {{ .Description }} -- 2.48.1