diff options
author | Jared Komoroski <JKomoroski@users.noreply.github.com> | 2021-02-13 20:20:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-13 20:20:29 +0300 |
commit | 615e0611b5c025cde16bc9c0fb1029cf43e5df7f (patch) | |
tree | a9def2d783ff51fd2ecbb0600ee7e025c3a9298e | |
parent | 449ad44156280f0d388ec8b8d5b439abb82ed7d4 (diff) |
* 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.toml | 1 | ||||
-rwxr-xr-x | layouts/partials/social.html | 4 |
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> |