www.franconian.net/layouts/_default/section.html

20 lines
534 B
HTML

{{ define "main" }}
<main>
<h1>{{ .Title }}</h1>
{{ .Content }}
<ul class="box-grid">
{{ range .Pages }}
<li class="box">
<h2 class="box-header"><a href="{{ .Permalink }}" class="block-link">{{ .Title }}</a></h2>
<div class="box-content">
{{ with .Date }}<p class="date">{{ .Format "2006-01-02 15:04" }}</p>{{ end }}
{{ .Content | truncate 150 }}
</div>
<div class="box-footer"><a href="{{ .Permalink }}" class="read-more-link">{{ i18n "read_more" }}</a></div>
</li>
{{ end }}
</ul>
</main>
{{ end }}