website/layouts/_default/list.html

36 lines
1.4 KiB
HTML
Raw Normal View History

{{- define "stylesheet" -}}
{{- $scss := resources.Get "/_default/list.scss" -}}
{{- $style := $scss | resources.ToCSS -}}
<link rel="stylesheet" href="{{ $style.Permalink }}" type="text/css" media="screen" rel="preload" />
{{- end -}}
2020-09-14 16:24:02 +02:00
{{- define "main" }}
<main>
<div class="container">
<section class="section posts">
<div class="section posts inner">
{{- range .Pages }}
<a href="{{ .Permalink }}">
<article>
2020-11-27 18:36:31 +01:00
<h2><span>{{ .Title }}</span></h2>
{{ with .Description }}<p class="description">{{ . }}</p>{{ end }}
2020-11-22 19:06:31 +01:00
{{- if eq .Params.type "post" }}
<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 {{ . }}</span>{{ end }}
2020-11-22 19:06:31 +01:00
{{ end }}
{{- if eq .Params.type "project" }}
<p class="meta">
{{ with .Params.activetime }}<span class="date">{{ . }}</span><br />{{ end }}
{{ with .Params.status }}<span class="status">{{ . }}</span>{{ end }}
{{- end }}
</p>
</article>
</a>
{{- end }}
</div>
</section>
2020-11-12 09:57:45 +01:00
</div>
</main>
{{- end }}