We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1515d7c + 04d5c75 commit 6934e44Copy full SHA for 6934e44
layouts/partials/related.html
@@ -0,0 +1,10 @@
1
+{{ $related := .Site.RegularPages.Related . | first 5 }}
2
+{{ with $related }}
3
+<hr />
4
+<h2>See Also</h2>
5
+<ul>
6
+ {{ range . }}
7
+ <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
8
+ {{ end }}
9
+</ul>
10
+{{ end }}
layouts/posts/single.html
@@ -78,6 +78,8 @@ <h1 class="posttitle" itemprop="name headline">
78
</div>
79
</article>
80
81
+ {{ partial "related.html" . }}
82
+
83
{{ partial "comments.html" . }}
84
85
{{ partial "page_nav_mobile.html" . }}
0 commit comments