website/layouts/index.html

69 lines
2.3 KiB
HTML
Raw Normal View History

{{ define "stylesheet" }}{{ $scss := resources.Get "/index.scss" }}{{ $style := $scss | resources.ToCSS }}
2020-09-14 16:24:02 +02:00
<link rel="stylesheet" href="{{ $style.Permalink }}" type="text/css" media="screen" />
{{ end }}
{{ define "main" }}
2020-11-04 18:37:31 +01:00
<section class="section header">
<div class="container">
<header>
<h1>{{ .Params.heading }}</h1>
<span class="subtitle">{{.Params.subheading}}</span>
</header>
2020-11-09 16:12:02 +01:00
<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 }}
{{ with .url }}</a>{{ end }}
2020-11-09 20:16:31 +01:00
{{ with .hint }}<a href="{{ .url }}">{{ .name }}</a>{{ end }}
2020-11-09 16:12:02 +01:00
</td>
</tr>
{{ end }}
</table>
</section>
2020-11-04 18:37:31 +01:00
</div>
</section>
<main>
<div class="container">
2020-11-03 21:43:41 +01:00
<section class="section projects">
2020-11-12 09:12:55 +01:00
<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>
<h1>{{ .Title }}</h1>
<p class="meta">{{ with .Params.activetime }}<span class="date">{{ . }}</span>{{ end }}<br />{{ with .Params.status }}<span class="status">{{ . }}</span>{{ end }}</p>
</article>
</a>
{{ end }}
</div>
</section>
<hr>
2020-11-12 09:57:45 +01:00
<section class="section posts">
2020-11-12 09:12:55 +01:00
<span class="latest">
latest <a href="{{ "/blog" | relURL }}">posts</a>
</span>
2020-11-12 09:57:45 +01:00
<div class="section posts inner">
2020-11-12 09:12:55 +01:00
{{ range first 4 (where .Site.RegularPages "Type" "post") }}
<a href="{{ .Permalink }}">
<article>
2020-11-12 09:57:45 +01:00
<h1><span>{{ .Title }}</span></h1>
2020-11-12 09:12:55 +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>
</div>
2020-09-14 16:24:02 +02:00
</main>
{{ end }}