Support section icons

This commit is contained in:
BBaoVanC 2021-10-10 16:27:46 -05:00
parent c40be2bcd7
commit fddb7ab0e4
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
2 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,7 @@
</h1>
{{ else }}
<h1>
{{ with .Params.icon }}{{ partial "icon.html" . }}{{ end }}
{{ .Title | markdownify }}
<span class="rss-link">
{{ with .OutputFormats.Get "rss" }}

View File

@ -1,5 +1,6 @@
<div class="post">
<h2 class="post-title">
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
</h2>