lubitest/layouts/index.html

36 lines
1.1 KiB
HTML
Raw Permalink Normal View History

2024-12-12 19:20:48 +00:00
{{ define "main" }}
<div class="row">
<div class="ten columns offset-by-one last-posts">
{{ .Content }}
<hr>
<h4>Neueste Blogposts:</h4>
</div>
</div>
<section>
{{- range first 3 (where site.RegularPages "Type" "in" site.Params.mainSections) }}
<div class="row">
<div class="ten columns offset-by-one post-preview">
<a href="{{ .Permalink }}" rel="bookmark"
title="Permalink to {{ htmlEscape .Title }}">
<h2>{{ .Title }}</h2>
<h4>{{ .Summary }}...</h4>
</a>
<p class="post-meta"Unsere Projekte>
Veröffentlicht {{ if isset .Params "author" }}von {{ .Params.author }} {{end}}am {{ dateFormat "Monday, 2. January 2006" .Date }}
</p>
<hr>
</div>
</div>
{{- end }}
</section>
<div class="row">
<div class="ten columns offset-by-one">
<ul class="pager">
<li class="next u-pull-right">
<a href="./blog/" class="button">Archiv →</a>
</li>
</ul>
</div>
</div>
{{ end }}