Docs: Allow HTML in Showcase titles

This allows, for example, marking with the lang attribute
so that the correct CJK glyph variants are displayed.
This commit is contained in:
Anthony Fok 2015-12-19 06:15:08 -07:00
parent e1af7cb9d0
commit f24ffc9c3d
3 changed files with 3 additions and 3 deletions

View file

@ -6,6 +6,6 @@ tags:
- personal
- blog
thumbnail: /img/chingli-tn.jpg
title: 青砾 (chingli)
title: <span lang="zh-CN">青砾</span> (chingli)
---

View file

@ -9,5 +9,5 @@ tags:
- blog
- documentation
thumbnail: /img/yulinling-tn.jpg
title: 语林灵 (Yulinling)
title: <span lang="zh-CN">语林灵</span> (Yulinling)
---

View 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 }}