Docs: Allow HTML in Showcase titles
authorAnthony Fok <foka@debian.org>
Sat, 19 Dec 2015 13:15:08 +0000 (06:15 -0700)
committerAnthony Fok <foka@debian.org>
Sat, 19 Dec 2015 13:15:08 +0000 (06:15 -0700)
This allows, for example, marking with the lang attribute
so that the correct CJK glyph variants are displayed.

docs/content/showcase/chingli.md
docs/content/showcase/yulinling.net.md
docs/layouts/showcase/thumbnail.html

index 4540952c2477c4b0bfb8ac0b7bae5495a3688f62..db495fbe29c763f0f700da8fb586d54df632ba9c 100644 (file)
@@ -6,6 +6,6 @@ tags:
 - personal
 - blog
 thumbnail: /img/chingli-tn.jpg
-title: 青砾 (chingli)
+title: <span lang="zh-CN">青砾</span> (chingli)
 ---
 
index 27d737ebeaab62d93d39f299c96fb2bda47e4003..2318c4f7716a1e18d2d6a7baf76db54c1eb4ad6c 100644 (file)
@@ -9,5 +9,5 @@ tags:
 - blog
 - documentation
 thumbnail: /img/yulinling-tn.jpg
-title: 语林灵 (Yulinling)
+title: <span lang="zh-CN">语林灵</span> (Yulinling)
 ---
index a0f7f81172f9ba5c9065efd1d055c5796870673b..5c36e5d2f504bb66fc991c8c4c4681627e7068f8 100644 (file)
@@ -4,7 +4,7 @@
       <div class="thumbnail">
       <a href="{{ .Params.sitelink }}"><img class="img-responsive img-rounded" style="width:100%;" src="{{ .Params.thumbnail }}" alt="{{ .Description }}"></a>
       <h4>
-        <a href="{{ .Params.sitelink }}">{{ .Title }}</a>
+        <a href="{{ .Params.sitelink }}">{{ .Title | safeHTML }}</a>
         {{ if (isset .Params "sourcelink") }}
         <a href="{{ .Params.sourcelink }}" class="small pull-right">source</a>
         {{ end }}