mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-08 17:22:46 +00:00
Added parameter to menu-contextual.html: show_related
This commit is contained in:
parent
b253230db3
commit
9b8c05674b
@ -17,17 +17,19 @@
|
|||||||
|
|
||||||
{{ $related := .Site.RegularPages.Related . | first 15 }}
|
{{ $related := .Site.RegularPages.Related . | first 15 }}
|
||||||
|
|
||||||
{{ with $related }}
|
{{ if .Site.Params.show_related}}
|
||||||
<div class="bg-light-gray pa3 nested-list-reset nested-copy-line-height nested-links">
|
{{ with $related }}
|
||||||
<p class="f5 b mb3">Related</p>
|
<div class="bg-light-gray pa3 nested-list-reset nested-copy-line-height nested-links">
|
||||||
<ul class="pa0 list">
|
<p class="f5 b mb3">Related</p>
|
||||||
{{ range . }}
|
<ul class="pa0 list">
|
||||||
<li class="mb2">
|
{{ range . }}
|
||||||
<a href="{{ .RelPermalink }}">
|
<li class="mb2">
|
||||||
{{- .Title -}}
|
<a href="{{ .RelPermalink }}">
|
||||||
</a>
|
{{- .Title -}}
|
||||||
</li>
|
</a>
|
||||||
{{ end }}
|
</li>
|
||||||
</ul>
|
{{ end }}
|
||||||
</div>
|
</ul>
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user