about summary refs log tree commit diff stats
path: root/templates/page.templ
diff options
context:
space:
mode:
Diffstat (limited to 'templates/page.templ')
-rw-r--r--templates/page.templ6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/page.templ b/templates/page.templ
index 980f827..39dd263 100644
--- a/templates/page.templ
+++ b/templates/page.templ
@@ -87,7 +87,11 @@ templ Page(site *config.Config, page PageSettings) {
 	</html>
 }
 
-func mkURL(u config.URL, path string, title string) string {
+func mkURL(original config.URL, path string, title string) string {
+	ou := *original.URL
+	u := config.URL{
+		URL: &ou,
+	}
 	q := url.Values{}
 	q.Add("p", path)
 	q.Add("t", title)