mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-15 18:54:40 -04:00
Squashed 'themes/gohugoioTheme/' changes from 7dd8a302..ca53082d
ca53082d Add See Also section git-subtree-dir: themes/gohugoioTheme git-subtree-split: ca53082de54436ff2dfbfee1228dcade4ac86a96
This commit is contained in:
parent
9301947b25
commit
7fbb4bed25
@ -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">
|
||||
|
9
layouts/partials/related.html
Normal file
9
layouts/partials/related.html
Normal file
@ -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 }}
|
Loading…
x
Reference in New Issue
Block a user