portails/layouts/docs/list.html

22 lines
783 B
HTML
Raw Normal View History

2020-04-15 15:48:16 +02:00
{{ define "main" }}
<div class="row justify-content-center">
<div class="col-md-12 col-lg-10 col-xl-8">
<article>
<h1 class="text-center">{{ if eq .CurrentSection .FirstSection }}{{ .Section | humanize }}{{ else }}{{ .Title }}{{ end }}</h1>
2020-04-15 15:48:16 +02:00
<div class="text-center">{{ .Content }}</div>
<div class="card-list">
{{ $currentSection := .CurrentSection }}
{{ range where .Site.RegularPages.ByTitle "Section" .Section }}
2021-04-02 19:45:05 +02:00
{{ if in (.RelPermalink | string) $currentSection.RelPermalink }}
2020-04-15 15:48:16 +02:00
<div class="card my-3">
<div class="card-body">
2021-04-02 19:45:05 +02:00
<a class="stretched-link" href="{{ .RelPermalink }}">{{ .Params.title | title }} &rarr;</a>
2020-04-15 15:48:16 +02:00
</div>
</div>
{{ end }}
{{ end }}
</div>
</article>
</div>
</div>
{{ end }}