diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-09-21 19:05:40 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-09-21 19:05:40 +0200 |
commit | c0370e0ee3f12efe5f82b219f56b5c71f04f2329 (patch) | |
tree | e26cab95ae8d64862ef47631327dd3a18db470c9 /docs/themes | |
parent | 5c3b2103688475b2cb824f372d2131e39581a3ab (diff) | |
parent | ba45da9d03056447e4873de13d4e0f8d658a769b (diff) |
Merge commit 'ba45da9d03056447e4873de13d4e0f8d658a769b'
Diffstat (limited to 'docs/themes')
-rwxr-xr-x | docs/themes/gohugoioTheme/layouts/_default/single.html | 1 | ||||
-rw-r--r-- | docs/themes/gohugoioTheme/layouts/partials/related.html | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/docs/themes/gohugoioTheme/layouts/_default/single.html b/docs/themes/gohugoioTheme/layouts/_default/single.html index 39fb77c75..8cd289624 100755 --- a/docs/themes/gohugoioTheme/layouts/_default/single.html +++ b/docs/themes/gohugoioTheme/layouts/_default/single.html @@ -11,6 +11,7 @@ <div id="readout" class="fixed right-0 bottom-0"> </div> {{ .Render "page" }} + {{ partial "related.html" . }} </div> </div> <div class="order-0 w-20 dn db-l"> diff --git a/docs/themes/gohugoioTheme/layouts/partials/related.html b/docs/themes/gohugoioTheme/layouts/partials/related.html new file mode 100644 index 000000000..fb11699af --- /dev/null +++ b/docs/themes/gohugoioTheme/layouts/partials/related.html @@ -0,0 +1,9 @@ +{{ $related := .Site.RegularPages.Related . | first 5 }} +{{ with $related }} +<h2>See Also</h2> +<ul> + {{ range . }} + <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li> + {{ end }} +</ul> +{{ end }}
\ No newline at end of file |