Toon relevante onderliggende pagina's door middel van optie
This commit is contained in:
parent
4a5ce3fa0a
commit
76e68c3e24
4 changed files with 9 additions and 27 deletions
|
@ -1,14 +1,3 @@
|
|||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
<section>
|
||||
<p>Relevante pagina's:</p>
|
||||
<ul class="list">
|
||||
{{ range .Pages }}
|
||||
<li>
|
||||
<a class="link" href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
|
|
@ -2,21 +2,10 @@
|
|||
{{ .Content }}
|
||||
|
||||
<section>
|
||||
<h2>Actieve leden</h2>
|
||||
{{ if .Params.active_members }}
|
||||
{{ .Scratch.Set "active_members" .Params.active_members }}
|
||||
{{ partial "show-active-members-small.html" . }}
|
||||
{{ end }}
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<p>Relevante pagina's:</p>
|
||||
<ul>
|
||||
{{ range .Pages }}
|
||||
<li>
|
||||
<a class="link" href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title | default "Geen titel" }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
<h2>Actieve leden</h2>
|
||||
{{ if .Params.active_members }}
|
||||
{{ .Scratch.Set "active_members" .Params.active_members }}
|
||||
{{ partial "show-active-members-small.html" . }}
|
||||
{{ end }}
|
||||
</section>
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue