Skip to content

Commit a665c4f

Browse files
committed
Move RSS links to a link (with icon) after the footer nav (supercedes codemeta#79)
The publication of RSS can be disabled by adding to the config.toml: [outputs] home = ["HTML"] section = ["HTML"]
1 parent 4d37dfb commit a665c4f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

themes/CodeMeta-Pyramids/layouts/partials/footer.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,15 @@
2828
</li>
2929
{{ end }}
3030
{{ end }}
31+
{{ with .OutputFormats.Get "RSS" }}
32+
<li>
33+
<a href="{{ .RelPermalink }}" aria-label="RSS feed for {{ page.Title }}"><i class="bi bi-rss"></i> RSS</a>
34+
</li>
35+
{{ end }}
3136
</ul>
3237
</nav>
3338
<div class="copyright pull-right">
3439
<img src="{{"img/cc-by.svg" | relURL }}"/>
3540
</div>
3641
</div>
37-
</footer>
42+
</footer>

themes/CodeMeta-Pyramids/layouts/partials/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
{{ range .Site.Params.custom_css }}
3232
<link rel="stylesheet" href="{{ "/css/" | relURL }}{{ . }}">
3333
{{ end }}
34-
{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}
34+
3535
<link rel="canonical" href="{{ .Permalink }}">
3636

3737
</head>

0 commit comments

Comments
 (0)