This repository has been archived on 2022-07-17. You can view files and clone it, but cannot push or open issues or pull requests.
arsenm-dev-site/layouts/docs/list.html

34 lines
1.1 KiB
HTML
Raw Permalink Normal View History

2021-01-31 08:54:37 +00:00
{{ define "main" }}
<div class="row justify-content-center">
<div class="col-md-12 col-lg-10 col-xl-8">
<article>
<a href="..">
<p class="text-center">&Leftarrow; {{ .Parent.Name }}</p>
</a>
<h1 style="margin: 0;" class="text-center">{{ .Title }}</h1>
<div class="text-center">{{ .Content }}</div>
<div class="card-list">
{{ $currentSection := .CurrentSection }}
{{ range .Paginator.Pages }}
{{ if in (.Permalink | string) $currentSection.RelPermalink }}
<div class="card my-3">
<div class="card-body">
<a class="stretched-link" href="{{ .Permalink }}">{{ .Params.title | title }} &Rightarrow;</a>
</div>
</div>
{{ end }}
{{ end }}
{{ range .CurrentSection.Sections }}
{{ if in (.Permalink | string) $currentSection.RelPermalink }}
<div class="card my-3">
<div class="card-body">
<a class="stretched-link" href="{{ .Permalink }}">{{ .Params.title | title }} &Rightarrow;</a>
</div>
</div>
{{ end }}
{{ end }}
</div>
</article>
</div>
</div>
{{ end }}