Adding RSS to example page and to social partial, uses the blog's RSS (#18)

* 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>
This commit is contained in:
Jared Komoroski 2021-02-13 10:20:29 -07:00 committed by GitHub
parent 449ad44156
commit 615e0611b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -27,6 +27,7 @@ theme = "hugo-sustain"
Stackoverflow = "username" Stackoverflow = "username"
Medium = "username" Medium = "username"
Telegram = "username" Telegram = "username"
RSS = "/blog/index.xml"
## Main Menu ## Main Menu
[[menu.main]] [[menu.main]]

View File

@ -27,5 +27,9 @@
{{ with .Site.Params.Social.Telegram }} {{ with .Site.Params.Social.Telegram }}
<li><a href="https://telegram.me/{{ . }}"><i class="fa fa-telegram"></i></a></li> <li><a href="https://telegram.me/{{ . }}"><i class="fa fa-telegram"></i></a></li>
{{ end }} {{ end }}
{{ with .Site.Params.Social.RSS }}
<li><a href="{{ . }}"><i class="fa fa-rss"></i></a></li>
{{ end }}
</ul> </ul>
</div> </div>