fix: mobile nav backgroud and new style

This commit is contained in:
Dillon
2019-08-19 21:14:15 +08:00
parent dcbc7547fc
commit 6d0116b883
5 changed files with 61 additions and 47 deletions

View File

@@ -37,7 +37,14 @@
{{ if .Params.show_description }}
<p>{{ . }}</p>
{{ else }}
{{ .Summary }}
{{ $summary := .Summary }}
{{ $REin := `:\(([\w- ]+?)\):` }}
{{ $REout := `<i class="inline-icon $1"></i>` }}
{{ $summary = replaceRE $REin $REout $summary }}
{{ $REin = `\[(.+?)\]\^\((.+?)\)` }}
{{ $REout = `<strong><ruby>$1<rt>$2</rt></ruby></strong>` }}
{{ $summary = replaceRE $REin $REout $summary }}
{{ $summary | safeHTML }}
{{ end }}
</div>
<div class="post-footer">