Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nurlansu/hugo-sustain.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJared Komoroski <JKomoroski@users.noreply.github.com>2021-02-13 20:20:29 +0300
committerGitHub <noreply@github.com>2021-02-13 20:20:29 +0300
commit615e0611b5c025cde16bc9c0fb1029cf43e5df7f (patch)
treea9def2d783ff51fd2ecbb0600ee7e025c3a9298e
parent449ad44156280f0d388ec8b8d5b439abb82ed7d4 (diff)
Adding RSS to example page and to social partial, uses the blog's RSS (#18)HEADmaster
* Adding RSS to example page and to social partial, uses the blog's RSS * Change "if" to "with" Co-authored-by: Nurlan Suyundukov <dev@nurlan.co>
-rw-r--r--exampleSite/config.toml1
-rwxr-xr-xlayouts/partials/social.html4
2 files changed, 5 insertions, 0 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 80e359a..212c106 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -27,6 +27,7 @@ theme = "hugo-sustain"
Stackoverflow = "username"
Medium = "username"
Telegram = "username"
+ RSS = "/blog/index.xml"
## Main Menu
[[menu.main]]
diff --git a/layouts/partials/social.html b/layouts/partials/social.html
index 2dcf2dd..51fb8bd 100755
--- a/layouts/partials/social.html
+++ b/layouts/partials/social.html
@@ -27,5 +27,9 @@
{{ with .Site.Params.Social.Telegram }}
<li><a href="https://telegram.me/{{ . }}"><i class="fa fa-telegram"></i></a></li>
{{ end }}
+
+ {{ with .Site.Params.Social.RSS }}
+ <li><a href="{{ . }}"><i class="fa fa-rss"></i></a></li>
+ {{ end }}
</ul>
</div>