2022-07-14 23:12:56 +02:00
{{ define "body_class" }} home-template {{ end }}
{{ define "main" }}
< header class = "site-home-header" >
{{ .Scratch.Set "background" .Params.feature_image }}
{{- partial "header-background.html" . -}}
< div class = "inner" >
{{- partial "site-nav.html" . -}}
< div class = "site-header-content" >
2023-07-04 16:01:14 +02:00
< h1 class = "site-title fadein" >
2022-07-14 23:12:56 +02:00
{{ if $.Site.Params.logo }}
< img class = "site-logo" src = "{{ $.Site.Params.logo }}" alt = "{{ .Site.Title }}" / >
{{ else }}
2022-12-26 16:42:09 +01:00
Hi, I'm < font color = "#EB4034" > {{ $.Site.Title }}< / font > .
2022-07-14 23:12:56 +02:00
{{ end }}
< / h1 >
2023-07-04 16:01:14 +02:00
< h2 class = "site-description fadein" > I'm an < font color = "#EB4034" > artist< / font > , < font color = "#0171FF" > designer< / font > , < font color = "#03B000" > photographer< / font > and < font color = "#FFB002" > libre advocate< / font > .< / h2 >
2022-12-26 16:42:09 +01:00
<!-- This is the old way of getting the description, I had to hardcode it in order to apply color. -->
<!-- <h2 class="site - description">{{ $.Site.Params.description }}</h2> -->
2022-07-14 23:12:56 +02:00
< / div >
< / div >
< / div >
< / header >
< main id = "site-main" class = "site-main outer" >
< div class = "inner posts" >
< div class = "post-feed" >
{{ $pages := site.RegularPages }}
{{ range $index, $element := $pages }}{{ if ne .Params.rss_ignore true }}
{{- partial "post-card.html" (dict "context" . "index" $index "home" $.IsHome) -}}
{{ end }}{{ end }}
< / div >
< / div >
< / main >
{{ end }}