35 lines
1.4 KiB
HTML
35 lines
1.4 KiB
HTML
{{- define "stylesheet" -}}
|
|
{{- $scss := resources.Get "/_default/list.scss" -}}
|
|
{{- $style := $scss | resources.ToCSS -}}
|
|
<link rel="preload stylesheet" as="style" href="{{ $style.Permalink }}" type="text/css" media="screen" />
|
|
{{- end -}}
|
|
|
|
{{- define "main" }}
|
|
<main>
|
|
<div class="container">
|
|
<section class="section posts">
|
|
<div class="section posts inner">
|
|
{{- range .Pages }}
|
|
<a href="{{ .Permalink }}">
|
|
<article>
|
|
<h2><span>{{ .Title }}</span></h2>
|
|
{{ with .Description }}<p class="description">{{ . }}</p>{{ end }}
|
|
{{- 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 }}
|
|
{{ 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>
|
|
</div>
|
|
</main>
|
|
{{- end }}
|