refactor(article): split article.html into header, content and footer partials

This commit is contained in:
Jimmy Cai
2020-08-24 19:27:51 +02:00
parent 28e4e01fae
commit e120f3ae18
4 changed files with 74 additions and 71 deletions
@@ -0,0 +1,16 @@
<footer class="article-footer">
{{ with $tags := .Params.Tags }}
<section class="article-tags">
{{ range $tags }}
<a href="/tags/{{ . | urlize }}">{{ . | humanize }}</a>
{{ end }}
</section>
{{ end }}
{{ if .Site.Params.postLicense }}
<section class="article-copyright">
{{ (resources.Get "icons/copyright.svg").Content | safeHTML }}
<span>{{ .Site.Params.postLicense }}</span>
</section>
{{ end }}
</footer>