2020-09-22 15:35:44 +02:00
|
|
|
{{ define "stylesheet" }}{{ $scss := resources.Get "/_default/list.scss" }}{{ $style := $scss | resources.ToCSS }}
|
2020-09-26 17:57:12 +02:00
|
|
|
<link rel="stylesheet" href="{{ $style.Permalink }}" type="text/css" media="screen" rel="preload" />
|
2020-09-14 16:24:02 +02:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "main" }}
|
2020-10-05 09:57:10 +02:00
|
|
|
<main>
|
2020-10-06 21:47:47 +02:00
|
|
|
<div class="container">
|
2020-10-05 09:57:10 +02:00
|
|
|
<section class="section-articles">
|
|
|
|
{{ range .Pages }}
|
|
|
|
<a href="{{ .Permalink }}">
|
|
|
|
<article>
|
|
|
|
<h1>{{ .Title }}</h1>
|
|
|
|
{{ if eq .Params.type "project" }}
|
|
|
|
<p class="" title="last change: {{ .Date.Format "2 Jan 2006" }}">
|
|
|
|
{{ with .Params.activetime }}<span class="date">{{ . }}</span>{{ end }}
|
|
|
|
{{ with .Params.status }}<span class="status">{{ . }}</span>{{ end }}
|
|
|
|
</p>
|
|
|
|
{{ end }}
|
|
|
|
{{ if ne .Params.type "project" }}
|
|
|
|
<p class="meta" title="{{ .Date.Format "2 Jan 2006, 15:04 MST" }}">
|
|
|
|
<span class="date">{{ .Date.Format "2 January 2006" }}</span>
|
|
|
|
{{ with .Params.author }}<span class="author">by {{ .Params.author }}</span>{{ end }}
|
|
|
|
</p>
|
|
|
|
{{ end }}
|
|
|
|
{{ with .Description }}
|
|
|
|
<p>{{ . }}</p>
|
|
|
|
{{ end }}
|
|
|
|
{{ with .Params.featured_image }}
|
|
|
|
<img src="{{ . | relURL }}" loading="lazy" alt="">
|
|
|
|
{{ end }}
|
|
|
|
</article>
|
|
|
|
</a>
|
|
|
|
{{ end }}
|
|
|
|
</section>
|
|
|
|
</div>
|
2020-09-14 16:24:02 +02:00
|
|
|
</main>
|
|
|
|
{{ end }}
|