2020-11-20 22:39:10 +01:00
|
|
|
{{- define "stylesheet" -}}
|
|
|
|
{{- $scss := resources.Get "/index.scss" -}}
|
|
|
|
{{- $style := $scss | resources.ToCSS -}}
|
2021-03-02 11:02:13 +01:00
|
|
|
<link rel="preload stylesheet" as="style" href="{{ $style.Permalink }}" type="text/css" media="screen" />
|
2020-11-20 22:39:10 +01:00
|
|
|
{{- end -}}
|
2020-09-14 16:24:02 +02:00
|
|
|
|
2020-11-20 22:39:10 +01:00
|
|
|
{{- define "main" -}}
|
|
|
|
<section class="section header">
|
|
|
|
<div class="container">
|
|
|
|
<header>
|
2020-11-27 18:36:31 +01:00
|
|
|
<h2>{{ .Params.heading }}</h2>
|
2020-11-20 22:39:10 +01:00
|
|
|
<span class="subtitle">{{.Params.subheading}}</span>
|
|
|
|
</header>
|
|
|
|
<section class="section contact">
|
|
|
|
<table class="table contact">
|
|
|
|
{{- range sort .Params.contact "weight" "asc" }}
|
|
|
|
<tr>
|
|
|
|
<td>{{ .name }}</td>
|
|
|
|
<td>
|
|
|
|
{{- with .url }}<a href="{{ . }}">{{ end -}}
|
|
|
|
{{ .handle }}
|
2021-02-11 16:17:30 +01:00
|
|
|
{{- with .url }}</a>{{ end }} {{ with .hint }}<a href="{{ .url }}">{{ .name }}</a>{{ end -}}
|
2020-11-20 22:39:10 +01:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{- end }}
|
|
|
|
</table>
|
|
|
|
</section>
|
2020-11-12 09:12:55 +01:00
|
|
|
</div>
|
|
|
|
</section>
|
2020-11-20 22:39:10 +01:00
|
|
|
|
|
|
|
<main>
|
|
|
|
<div class="container">
|
|
|
|
<section class="section projects">
|
|
|
|
<span class="latest">
|
|
|
|
latest <a href="{{ "/projects" | relURL }}">projects</a>
|
|
|
|
</span>
|
|
|
|
<div class="section projects inner">
|
|
|
|
{{- range first 4 (where .Site.RegularPages "Type" "project") }}
|
|
|
|
<a href="{{ .Permalink }}">
|
|
|
|
<article>
|
2020-11-27 18:36:31 +01:00
|
|
|
<h2>{{ .Title }}</h2>
|
2020-11-20 22:39:10 +01:00
|
|
|
<p class="meta">
|
2020-11-22 19:06:31 +01:00
|
|
|
{{ with .Params.activetime }}<span class="date">{{ . }}</span><br />{{ end }}
|
2020-11-20 22:39:10 +01:00
|
|
|
{{ with .Params.status }}<span class="status">{{ . }}</span>{{ end }}
|
|
|
|
</p>
|
|
|
|
</article>
|
|
|
|
</a>
|
|
|
|
{{- end }}
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<hr>
|
|
|
|
<section class="section posts">
|
|
|
|
<span class="latest">
|
|
|
|
latest <a href="{{ "/blog" | relURL }}">posts</a>
|
|
|
|
</span>
|
|
|
|
<div class="section posts inner">
|
|
|
|
{{- range first 4 (where .Site.RegularPages "Type" "post") }}
|
|
|
|
<a href="{{ .Permalink }}">
|
|
|
|
<article>
|
2020-11-27 18:36:31 +01:00
|
|
|
<h2><span>{{ .Title }}</span></h2>
|
2020-11-20 22:39:10 +01:00
|
|
|
{{ with .Description }}<p class="description">{{ . }}</p>{{ end }}
|
|
|
|
<p class="meta" title="{{ .Date.Format "2 Jan 2006, 15:04 MST" }}">
|
|
|
|
<span class="date">{{ .Date.Format "2 January 2006" }}</span>
|
|
|
|
<span class="author">{{ with .Params.author }}by {{ end }}{{ .Params.author }}</span>
|
|
|
|
</p>
|
|
|
|
</article>
|
|
|
|
</a>
|
|
|
|
{{- end }}
|
|
|
|
</div>
|
|
|
|
</section>
|
2020-11-12 09:12:55 +01:00
|
|
|
</div>
|
2020-11-20 22:39:10 +01:00
|
|
|
</main>
|
|
|
|
{{- end }}
|