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
@@ -30,7 +30,7 @@
{{- if not .Date.IsZero -}}
<footer class="article-time">
{{ (resources.Get "icons/clock.svg").Content | safeHTML }}
{{ partial "helper/icon" "clock" }}
<time class="article-time--published">
{{- .Date.Format (or .Site.Params.dateFormat.published "Jan 02, 2006") -}}
</time>