ref: f24ffc9c3df30c991b5df6fa0c973d77679bfee5
parent: e1af7cb9d06933f593661c498ed2f05a21286e87
author: Anthony Fok <[email protected]>
date: Sat Dec 19 01:15:08 EST 2015
Docs: Allow HTML in Showcase titles This allows, for example, marking with the lang attribute so that the correct CJK glyph variants are displayed.
--- a/docs/content/showcase/chingli.md
+++ b/docs/content/showcase/chingli.md
@@ -6,6 +6,6 @@
- personal
- blog
thumbnail: /img/chingli-tn.jpg
-title: 青砾 (chingli)
+title: <span lang="zh-CN">青砾</span> (chingli)
---
--- a/docs/content/showcase/yulinling.net.md
+++ b/docs/content/showcase/yulinling.net.md
@@ -9,5 +9,5 @@
- blog
- documentation
thumbnail: /img/yulinling-tn.jpg
-title: 语林灵 (Yulinling)
+title: <span lang="zh-CN">语林灵</span> (Yulinling)
---
--- 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 }}