Skip to content

Commit c701b9d

Browse files
committed
footer disqus
1 parent 2f30eea commit c701b9d

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

layouts/partials/footer.html

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{{ template "_internal/disqus.html" . }}
2+
3+
<footer class="footer">
4+
<div class="footer-row">
5+
{{ range .Site.Sections }}
6+
{{ $section := . }}
7+
{{ with .OutputFormats.Get "rss" }}
8+
<a class="footer-item" href="{{ .Permalink }}">
9+
Feed of {{ $section.Section | humanize }}
10+
<i class="icofont-rss"></i>
11+
</a>
12+
{{ end }}
13+
{{ end }}
14+
15+
{{ if not (or .IsHome .IsSection) }}
16+
{{ $term := . }}
17+
{{ with .OutputFormats.Get "rss" }}
18+
<a class="footer-item" href="{{ .Permalink }}">
19+
Feed of "{{ $term.Title }}"
20+
<i class="icofont-rss"></i>
21+
</a>
22+
{{ end }}
23+
{{ end }}
24+
</div>
25+
26+
{{ range .Site.Params.footer_rows }}
27+
<div class="footer-row">
28+
{{ range .items }}
29+
{{ with .pre }}
30+
<span class="footer-item">{{ . | safeHTML }}</span>
31+
{{ else }}
32+
<a class="footer-item" href="{{ .url }}">{{ .name }}</a>
33+
{{ end }}
34+
{{ end }}
35+
</div>
36+
{{ end }}
37+
</footer>

layouts/partials/header.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<head>
22
{{ template "_internal/google_analytics.html" . }}
3-
{{ partial "disqus.html" . }}
43
{{ template "_internal/twitter_cards.html" . }}
54
</head>
65

0 commit comments

Comments
 (0)