From: Anthony Fok Date: Sat, 19 Dec 2015 13:15:08 +0000 (-0700) Subject: Docs: Allow HTML in Showcase titles X-Git-Tag: v0.16~497 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f24ffc9c;p=brevno-suite%2Fhugo Docs: Allow HTML in Showcase titles This allows, for example, marking with the lang attribute so that the correct CJK glyph variants are displayed. --- diff --git a/docs/content/showcase/chingli.md b/docs/content/showcase/chingli.md index 4540952c..db495fbe 100644 --- a/docs/content/showcase/chingli.md +++ b/docs/content/showcase/chingli.md @@ -6,6 +6,6 @@ tags: - personal - blog thumbnail: /img/chingli-tn.jpg -title: 青砾 (chingli) +title: 青砾 (chingli) --- diff --git a/docs/content/showcase/yulinling.net.md b/docs/content/showcase/yulinling.net.md index 27d737eb..2318c4f7 100644 --- a/docs/content/showcase/yulinling.net.md +++ b/docs/content/showcase/yulinling.net.md @@ -9,5 +9,5 @@ tags: - blog - documentation thumbnail: /img/yulinling-tn.jpg -title: 语林灵 (Yulinling) +title: 语林灵 (Yulinling) --- diff --git a/docs/layouts/showcase/thumbnail.html b/docs/layouts/showcase/thumbnail.html index a0f7f811..5c36e5d2 100644 --- a/docs/layouts/showcase/thumbnail.html +++ b/docs/layouts/showcase/thumbnail.html @@ -4,7 +4,7 @@
{{ .Description }}

- {{ .Title }} + {{ .Title | safeHTML }} {{ if (isset .Params "sourcelink") }} source {{ end }}