From 351d55ceb8de0bcacac5ec13c04016c2903e4813 Mon Sep 17 00:00:00 2001 From: Yap Jia Hong Date: Sat, 2 Mar 2024 12:10:19 +0800 Subject: [PATCH] feat(rss): Option to show RSS in footer. --- layouts/partials/footer.html | 10 +++++++++- layouts/partials/head.html | 3 +++ layouts/partials/home/profile.html | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 1f8fc5fc..48d6b3e9 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -36,6 +36,14 @@

{{ end }} + {{ if .Site.Params.footer.showRss | default false }} +

+ + RSS +

+ {{ end }} + + {{/* Theme attribution */}} {{ if .Site.Params.footer.showThemeAttribution | default true }}

@@ -65,4 +73,4 @@ {{ if templates.Exists "partials/extend-footer.html" }} {{ partialCached "extend-footer.html" . }} {{ end }} - \ No newline at end of file + diff --git a/layouts/partials/head.html b/layouts/partials/head.html index f59e9dc8..8e9d46b6 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -112,6 +112,9 @@ {{ end }} {{ end }} {{ end }} + + + {{/* Vendor */}} {{ partial "vendor.html" . }} {{/* Analytics */}} diff --git a/layouts/partials/home/profile.html b/layouts/partials/home/profile.html index 1780569e..85fa931d 100644 --- a/layouts/partials/home/profile.html +++ b/layouts/partials/home/profile.html @@ -34,4 +34,4 @@

{{ partial "recent-articles/main.html" . }} -
\ No newline at end of file +