hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit f24ffc9c3df30c991b5df6fa0c973d77679bfee5
parent e1af7cb9d06933f593661c498ed2f05a21286e87
Author: Anthony Fok <foka@debian.org>
Date:   Sat, 19 Dec 2015 06:15:08 -0700

Docs: Allow HTML in Showcase titles

This allows, for example, marking with the lang attribute
so that the correct CJK glyph variants are displayed.

Diffstat:
Mdocs/content/showcase/chingli.md | 2+-
Mdocs/content/showcase/yulinling.net.md | 2+-
Mdocs/layouts/showcase/thumbnail.html | 2+-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git 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: <span lang="zh-CN">青砾</span> (chingli)
 ---
 
diff --git 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: <span lang="zh-CN">语林灵</span> (Yulinling)
 ---
diff --git a/docs/layouts/showcase/thumbnail.html b/docs/layouts/showcase/thumbnail.html
@@ -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 }}