trainUs/website/layouts/_default/list.html
David 352a3d5e88
Some checks are pending
CI / Lint & Format (push) Waiting to run
CI / Build (push) Waiting to run
CI / Tests (${{ matrix.browser }}) (chromium) (push) Waiting to run
CI / Tests (${{ matrix.browser }}) (firefox) (push) Waiting to run
Initial commit
2026-06-18 13:06:57 +02:00

26 lines
915 B
HTML

{{ define "main" }}
<div class="container list-wrap">
<div class="list-header">
<h1 class="list-title">{{ .Title }}</h1>
{{ with .Description }}<p class="list-description">{{ . }}</p>{{ end }}
</div>
{{ with .Content }}<div class="article-body">{{ . }}</div>{{ end }}
{{ if .Pages -}}
<ul class="post-list">
{{ range .Pages.ByDate.Reverse -}}
<li class="post-card">
<h2 class="post-card-title"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
{{ if not .Date.IsZero -}}
<p class="post-card-meta">
{{ i18n "postedOn" }} <time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date | time.Format ":date_long" }}</time>
</p>
{{- end }}
{{ with .Summary }}<p class="post-card-summary">{{ . }}</p>{{ end }}
<a class="read-more" href="{{ .RelPermalink }}">{{ i18n "readMore" }}</a>
</li>
{{- end }}
</ul>
{{- end }}
</div>
{{ end }}