diff --git a/serve/template.go b/serve/template.go index 5c79e40..d91fb31 100644 --- a/serve/template.go +++ b/serve/template.go @@ -246,5 +246,9 @@ func GetTemplateFunctions() template.FuncMap { } return strings.Join(ids, ",") }, + "stripEmbed": func(s string) string { + // this is stupid + return s[:len(s)-6] + }, } } diff --git a/views/embed.jet.html b/views/embed.jet.html index cf19e72..3f2fdc0 100644 --- a/views/embed.jet.html +++ b/views/embed.jet.html @@ -1,5 +1,6 @@ + {{ url := stripEmbed(BaseURL) }} {{ Title }} @@ -7,14 +8,14 @@ - + - You should have been redirected, here is a link to the original post. + You should have been redirected, here is a link to the original post.