1
0
mirror of https://github.com/BBaoVanC/bobatheme.git synced 2025-06-21 12:57:30 -05:00

Support section icons

This commit is contained in:
2021-10-10 16:27:46 -05:00
parent c40be2bcd7
commit fddb7ab0e4
2 changed files with 2 additions and 0 deletions
layouts/_default

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

@ -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>