mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
b2c60ef898
This marks the launch of the new documentation website.
23 lines
858 B
HTML
23 lines
858 B
HTML
{{ 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>
|
|
<div class="text-center">{{ .Content }}</div>
|
|
<div class="card-list">
|
|
{{ $currentSection := .CurrentSection }}
|
|
{{ range where .Site.RegularPages.ByWeight "Section" .Section }}
|
|
{{ if in (.RelPermalink | string) $currentSection.RelPermalink }}
|
|
<div class="card my-3">
|
|
<div class="card-body">
|
|
<a class="stretched-link" href="{{ .RelPermalink }}">{{ if (eq $currentSection.Title .Title) }}Introduction{{ else }}{{ .Params.title | title }}{{ end }} →</a>
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
</article>
|
|
</div>
|
|
</div>
|
|
{{ end }}
|