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,7 +17,8 @@
|
|||||||
|
|
||||||
{{ $related := .Site.RegularPages.Related . | first 15 }}
|
{{ $related := .Site.RegularPages.Related . | first 15 }}
|
||||||
|
|
||||||
{{ with $related }}
|
{{ if .Site.Params.show_related}}
|
||||||
|
{{ with $related }}
|
||||||
<div class="bg-light-gray pa3 nested-list-reset nested-copy-line-height nested-links">
|
<div class="bg-light-gray pa3 nested-list-reset nested-copy-line-height nested-links">
|
||||||
<p class="f5 b mb3">Related</p>
|
<p class="f5 b mb3">Related</p>
|
||||||
<ul class="pa0 list">
|
<ul class="pa0 list">
|
||||||
@ -29,5 +30,6 @@
|
|||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user