forked from leafee98/hugo-theme-flat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add feed support, place the hyperlink at footer
- Loading branch information
Showing
2 changed files
with
18 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,23 @@ | ||
<footer class="footer"> | ||
<div class="footer-row"> | ||
{{ if .IsHome }} | ||
<a class="footer-item" href="/index.xml">The Site Feed</a> | ||
{{ else }} | ||
<a class="footer-item" href="/index.xml">The Site Feed</a> | ||
{{ with .OutputFormats.Get "rss" }} | ||
<a class="footer-item" href="{{ .Permalink }}">The Taxonomy Feed</a> | ||
{{ end }} | ||
{{ end }} | ||
</div> | ||
{{ range .Site.Params.footer_rows }} | ||
<div class="footer-row"> | ||
{{ range .items }} | ||
{{ with .pre }} | ||
<span class="footer-item">{{ . | safeHTML }}</span> | ||
{{ else }} | ||
<a href="{{ .url }}">{{ .name }}</a> | ||
<a class="footer-item" href="{{ .url }}">{{ .name }}</a> | ||
{{ end }} | ||
{{ end }} | ||
</div> | ||
{{ end }} | ||
</footer> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters