mirror of
https://github.com/gohugoio/hugo.git
synced 2025-03-20 09:22:29 +00:00
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:
parent
e1af7cb9d0
commit
f24ffc9c3d
3 changed files with 3 additions and 3 deletions
|
@ -6,6 +6,6 @@ tags:
|
||||||
- personal
|
- personal
|
||||||
- blog
|
- blog
|
||||||
thumbnail: /img/chingli-tn.jpg
|
thumbnail: /img/chingli-tn.jpg
|
||||||
title: 青砾 (chingli)
|
title: <span lang="zh-CN">青砾</span> (chingli)
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -9,5 +9,5 @@ tags:
|
||||||
- blog
|
- blog
|
||||||
- documentation
|
- documentation
|
||||||
thumbnail: /img/yulinling-tn.jpg
|
thumbnail: /img/yulinling-tn.jpg
|
||||||
title: 语林灵 (Yulinling)
|
title: <span lang="zh-CN">语林灵</span> (Yulinling)
|
||||||
---
|
---
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<div class="thumbnail">
|
<div class="thumbnail">
|
||||||
<a href="{{ .Params.sitelink }}"><img class="img-responsive img-rounded" style="width:100%;" src="{{ .Params.thumbnail }}" alt="{{ .Description }}"></a>
|
<a href="{{ .Params.sitelink }}"><img class="img-responsive img-rounded" style="width:100%;" src="{{ .Params.thumbnail }}" alt="{{ .Description }}"></a>
|
||||||
<h4>
|
<h4>
|
||||||
<a href="{{ .Params.sitelink }}">{{ .Title }}</a>
|
<a href="{{ .Params.sitelink }}">{{ .Title | safeHTML }}</a>
|
||||||
{{ if (isset .Params "sourcelink") }}
|
{{ if (isset .Params "sourcelink") }}
|
||||||
<a href="{{ .Params.sourcelink }}" class="small pull-right">source</a>
|
<a href="{{ .Params.sourcelink }}" class="small pull-right">source</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue