mirror of
https://github.com/Vimux/Binario.git
synced 2024-12-22 20:49:05 +00:00
ad7478c905
It is possible to turn on/off related content block
11 lines
No EOL
373 B
HTML
11 lines
No EOL
373 B
HTML
{{ $related := .Site.RegularPages.Related . | first 5 }}
|
|
{{ if and ($related) (.Param "related") }}
|
|
<div class="related block">
|
|
<h3 class="related__title">{{ T "related_title" }}</h3>
|
|
<ul class="related__list">
|
|
{{ range $related }}
|
|
<li class="related__item"><a class="related__link" href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
|
{{ end }}
|
|
</ul>
|
|
</div>
|
|
{{ end }} |