Skip to content

Commit c538b83

Browse files
committed
Fixes the page footer
1 parent 7f78953 commit c538b83

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

layouts/partials/site-footer.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@ <h3 style="margin: 0px; margin-top: 10px; margin-left: 10px; align-self: center
1616
<div style="text-align: center; margin-left: -40px;">👉 <a href="https://us14.campaign-archive.com/home/?u=95bb62bd0ea664ca96566837e&id=772d3b0db9" style="color: #fff;">View our previous newsletters (Archive)</a></div>
1717

1818
<div class="credits" style="margin-top: 10px;">
19-
{{ $sections := where $.Site.Pages ".Kind" "section" }}
20-
{{ $feeds := dict "newsroom" "Newsroom" "blog" "Blog" "case-studies" "Case Studies" }}
21-
{{ range $sections }}
22-
{{ $label := index $feeds .Section }}
23-
{{ if and $label .Parent.IsHome }}
19+
{{ $feeds := slice (dict "path" "/newsroom/news" "label" "News") (dict "path" "/blog" "label" "Blog") (dict "path" "/case-studies" "label" "Case Studies") }}
20+
{{ range $feeds }}
21+
{{ $label := .label }}
22+
{{ with $.Site.GetPage .path }}
2423
{{ with .OutputFormats.Get "rss" }}
2524
<a type="application/rss+xml" title="{{ $.Site.Title }} - {{ $label }} Feed" href="{{.Permalink}}"><img src="/img/rss.webp" height="20"> {{ $label }}</a>&nbsp; &nbsp;
2625
{{ end }}

0 commit comments

Comments
 (0)