kollektivforeningen.dk/themes/black-and-light/layouts/index.html

53 lines
1.1 KiB
HTML
Raw Normal View History

2020-04-04 16:55:55 +00:00
{{- define "main" -}}
<section class="section_secondary">
{{ .Content }}
</section>
<h1>Kalender</h1>
<section>
2018-12-02 11:50:15 +00:00
2019-02-21 12:23:21 +00:00
<ul class=posts_listing>
2020-04-04 16:55:55 +00:00
{{ with .Site.GetPage "/calendar" }}
2019-02-21 12:23:21 +00:00
{{ range first 5 (where .Pages "Section" "calendar") }}
<li>
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<div id=date>
<time>{{ .Date.Format (.Site.Params.dateform | default "January 2006") }}</time>
</div>
<p>{{ .Summary }}</p>
<div>
<a href="{{ .RelPermalink }}">Read More…</a>
</div>
</li>
{{ end }}
2020-04-04 16:55:55 +00:00
{{ end }}
2019-02-21 12:23:21 +00:00
</ul>
</section>
2020-04-04 16:55:55 +00:00
<h1>Nyheder</h1>
<section>
2018-12-02 11:50:15 +00:00
<ul class=posts_listing>
2020-04-04 16:55:55 +00:00
{{ with .Site.GetPage "/posts" }}
2018-12-02 12:06:53 +00:00
{{ range first 5 (where .Pages "Section" "posts") }}
2018-12-02 11:50:15 +00:00
<li>
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<div id=date>
<time>{{ .Date.Format (.Site.Params.dateform | default "January 2006") }}</time>
</div>
2018-12-02 12:06:53 +00:00
<p>{{ .Summary }}</p>
<div>
<a href="{{ .RelPermalink }}">Read More…</a>
</div>
</li>
2018-12-02 11:50:15 +00:00
{{ end }}
2020-04-04 16:55:55 +00:00
{{ end }}
2018-12-02 11:50:15 +00:00
</ul>
</section>
2020-04-04 16:55:55 +00:00
{{- end -}}