Make the footer multilines view variable
This commit is contained in:
parent
c76fa98be3
commit
b5e4178324
5 changed files with 26 additions and 13 deletions
|
@ -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 }}
|
||||
|
|
13
layouts/partials/style.html
Normal file
13
layouts/partials/style.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue