diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/single.gmi | 2 | ||||
-rw-r--r-- | layouts/index.gmi | 6 | ||||
-rw-r--r-- | layouts/partials/header.gmi | 2 | ||||
-rw-r--r-- | layouts/partials/metadata.gmi | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi index 9681f92..9dfb215 100644 --- a/layouts/_default/single.gmi +++ b/layouts/_default/single.gmi @@ -3,4 +3,4 @@ {{ $content := .RawContent }} {{- $content = $content | replaceRE `\[(.+?)\]\((.+?)\)` "=> $2 $1" }} -{{- $content }}{{ end }} +{{- $content | safeHTML }}{{ end }} diff --git a/layouts/index.gmi b/layouts/index.gmi index 434fae5..9c58e8f 100644 --- a/layouts/index.gmi +++ b/layouts/index.gmi @@ -1,10 +1,10 @@ {{ define "main" }} -# {{ .Site.Params.indexTitle }} -{{ .Site.Params.indexIntro }} +# {{ .Site.Params.indexTitle | safeHTML }} +{{ .Site.Params.indexIntro | safeHTML }} ## Navigation Links {{ range .Site.Menus.main -}} -=> .{{ .URL }} {{ .Name }} +=> .{{ .URL }} {{ .Name | safeHTML }} {{ end }} ## Journal Entries {{ partial "metadata.gmi" . }}{{ end }} diff --git a/layouts/partials/header.gmi b/layouts/partials/header.gmi index e060cd0..acdb5eb 100644 --- a/layouts/partials/header.gmi +++ b/layouts/partials/header.gmi @@ -1,3 +1,3 @@ ```nicksphere logo -{{ $.Site.Params.logo }} +{{ $.Site.Params.logo | safeHTML }} ``` diff --git a/layouts/partials/metadata.gmi b/layouts/partials/metadata.gmi index 3984494..92036a1 100644 --- a/layouts/partials/metadata.gmi +++ b/layouts/partials/metadata.gmi @@ -2,10 +2,10 @@ {{- range first $entriesMinusOne (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse }} {{- $dateFormat := .Site.Params.dateFormat | default "2 Jan 2006" }} {{- .PublishDate.Format $dateFormat }} - {{ .ReadingTime }} minute read -=> .{{ .RelPermalink }} {{ .Title }} +=> .{{ .RelPermalink }} {{ .Title | safeHTML }} {{ end }} {{- range last 1 (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse }} {{- $dateFormat := .Site.Params.dateFormat | default "2 Jan 2006" }} {{- .PublishDate.Format $dateFormat }} - {{ .ReadingTime }} minute read -=> .{{ .RelPermalink }} {{ .Title }}{{ end }} +=> .{{ .RelPermalink }} {{ .Title | safeHTML }}{{ end }} |