Make the footer multilines view variable

This commit is contained in:
Gregory Trolliet 2020-04-28 08:40:17 +02:00
parent c76fa98be3
commit b5e4178324
5 changed files with 26 additions and 13 deletions

View file

@ -1,15 +1,7 @@
<!DOCTYPE html>
<html lang="fr">
{{- partial "head.html" . -}}
{{ if .Site.Params.colors }}
<style>
:root {
{{ range $key, $val := .Site.Params.colors }}
--{{ $key }}-color: {{ $val }};
{{ end }}
}
</style>
{{ end }}
{{- partial "style.html" . -}}
<body>
{{- partial "header.html" . -}}
{{- block "main" . }}{{- end }}

View file

@ -0,0 +1,13 @@
<style>
:root {
{{ if .Site.Params.colors }}
{{ range $key, $val := .Site.Params.colors }}
--{{ $key }}-color: {{ $val }};
{{ end }}
{{ end }}
{{ if .Site.Params.contact }}
--footer-height-block: {{ mul (add (len .Site.Params.contact) 2) 2 }}em;
{{ end }}
}
</style>