2020-09-22 15:35:44 +02:00
{{ 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 >
< / div >
< / section >
2020-09-22 15:18:28 +02:00
< main >
2020-10-06 21:47:47 +02:00
< div class = "container" >
2020-11-03 21:43:41 +01:00
< span class = "section latest" >
2020-10-06 21:47:47 +02:00
latest
2020-10-05 09:57:10 +02:00
< a href = "{{ " / blog " | relURL } } " > posts< / a >
< / span >
2020-11-03 21:43:41 +01:00
< section class = "section articles" >
2020-09-22 15:18:28 +02:00
{{ range first 2 (where .Site.RegularPages "Type" "post") }}
< a href = "{{ .Permalink }}" >
< article >
< h1 > {{ .Title }}< / h1 >
2020-09-30 20:05:47 +02:00
< 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 >
2020-09-22 15:18:28 +02:00
{{ with .Description }}
< p > {{ . }}< / p >
{{ end }}
{{ with .Params.featured_image }}
2020-10-05 09:57:10 +02:00
< img src = "{{ . | relURL }}" alt = "" >
2020-09-22 15:18:28 +02:00
{{ end }}
< / article >
< / a >
{{ end }}
< / section >
2020-11-03 21:43:41 +01:00
< span class = "section latest" >
2020-10-06 21:47:47 +02:00
latest
2020-10-05 09:57:10 +02:00
< a href = "{{ " / projects " | relURL } } " > projects< / a >
< / span >
2020-11-03 21:43:41 +01:00
< section class = "section projects" >
2020-09-22 15:18:28 +02:00
{{ range first 3 (where .Site.RegularPages "Type" "project") }}
< a href = "{{ .Permalink }}" >
< article >
< h1 > {{ .Title }}< / h1 >
< p class = "meta" 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 >
{{ with .Description }}< p > {{ . }}< / p > {{ end }}
2020-10-05 09:57:10 +02:00
< img { { with . Params . featured_image } } src = "{{ . | relURL }}" { { end } } alt = "" >
2020-09-22 15:18:28 +02:00
< / article >
< / a >
{{ end }}
< / section >
< / div >
2020-09-14 16:24:02 +02:00
< / main >
{{ end }}