added rss

This commit is contained in:
Gabriele Musco 2020-08-24 09:05:01 +02:00
parent f9eb307cca
commit 4833003882
2 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,9 @@
</div> </div>
</div> </div>
<div id="links"> <div id="links">
{{ if .Site.Params.showRss | default true }}
{{- partial "nerdlink" ["RSS", "/index.xml"] -}}
{{ end }}
{{ range .Site.Params.links }} {{ range .Site.Params.links }}
{{- partial "nerdlink" . -}} {{- partial "nerdlink" . -}}
{{ end }} {{ end }}

View File

@ -25,6 +25,8 @@
&#xf2c6; &#xf2c6;
{{ else if eq (lower (index . 0)) "phone" }} {{ else if eq (lower (index . 0)) "phone" }}
&#xf095; &#xf095;
{{ else if eq (lower (index . 0)) "rss" }}
&#xf143;
{{ else }} {{ else }}
{{ index . 0 }} {{ index . 0 }}
{{ end }} {{ end }}