feat(rss): Option to show RSS in footer.

This commit is contained in:
Yap Jia Hong 2024-03-02 12:10:19 +08:00
parent c77c69da84
commit 351d55ceb8
3 changed files with 13 additions and 2 deletions

View file

@ -36,6 +36,14 @@
</p>
{{ end }}
{{ if .Site.Params.footer.showRss | default false }}
<p class="text-xs text-neutral-500 dark:text-neutral-400">
<i class="bi bi-rss-fill"></i>
<a href="{{ .Site.Params.footer.rssName }}">RSS</a>
</p>
{{ end }}
{{/* Theme attribution */}}
{{ if .Site.Params.footer.showThemeAttribution | default true }}
<p class="text-xs text-neutral-500 dark:text-neutral-400">
@ -65,4 +73,4 @@
{{ if templates.Exists "partials/extend-footer.html" }}
{{ partialCached "extend-footer.html" . }}
{{ end }}
</footer>
</footer>

View file

@ -112,6 +112,9 @@
<link href="{{ $url }}" rel="me" />{{ end }}
{{ end }}
{{ end }}
<!-- Bootstrap icons -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
{{/* Vendor */}}
{{ partial "vendor.html" . }}
{{/* Analytics */}}

View file

@ -34,4 +34,4 @@
</article>
<section>
{{ partial "recent-articles/main.html" . }}
</section>
</section>