feat(helper): add helper/icon

This commit is contained in:
Jimmy Cai
2020-10-10 00:27:56 +02:00
parent 4e646fe15e
commit 871e8c0bd5
6 changed files with 12 additions and 6 deletions
+1 -1
View File
@@ -33,7 +33,7 @@
<li {{ if $active }} class='current' {{ end }}>
<a href='{{ .URL | absLangURL }}'>
{{ if .Pre }}
{{ (resources.Get (delimit (slice "icons/" .Pre ".svg") "")).Content | safeHTML }}
{{ partial "helper/icon" .Pre }}
{{ end }}
<span>{{- .Name -}}</span>
</a>