From 94c3de7669ff9a552b575f538cdda70e2faa84c5 Mon Sep 17 00:00:00 2001 From: Ben Garrett Date: Mon, 30 Oct 2023 16:12:53 +1100 Subject: [PATCH] fixed navbar issues. --- .goreleaser.yaml | 1 + handler/app/funchtml.go | 4 ++-- view/app/layout.tmpl | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 62be1e2b..4db99b9a 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -37,3 +37,4 @@ changelog: - '^docs:' - '^test:' - '^tmp:' + - '.env' diff --git a/handler/app/funchtml.go b/handler/app/funchtml.go index d2533410..b4e6acb5 100644 --- a/handler/app/funchtml.go +++ b/handler/app/funchtml.go @@ -546,7 +546,7 @@ func LinkRemote(href, name string) template.HTML { if name == "" { return "error: name is empty" } - a := fmt.Sprintf(`%s %s`, + a := fmt.Sprintf(`%s %s`, href, name, link) return template.HTML(a) } @@ -563,7 +563,7 @@ func LinkWiki(uri, name string) template.HTML { if err != nil { return template.HTML(err.Error()) } - a := fmt.Sprintf(`%s %s`, + a := fmt.Sprintf(`%s %s`, href, name, wiki) return template.HTML(a) } diff --git a/view/app/layout.tmpl b/view/app/layout.tmpl index 1d9b6d76..0f6a72fd 100644 --- a/view/app/layout.tmpl +++ b/view/app/layout.tmpl @@ -91,7 +91,7 @@ -
+
-
+
{{- block "modal" . -}}{{ "" | safeHTML -}}{{end}} {{- block "uploader" . -}}{{ "" | safeHTML -}}{{end}}