mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-14 12:14:53 -04:00
theme: Merge commit '7fbb4bed25001182bfeb91f79db0f0c1936582ee'
Closes #32
This commit is contained in:
commit
557c36e81c
@ -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
themes/gohugoioTheme/layouts/partials/related.html
Normal file
9
themes/gohugoioTheme/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