From 4acf08ae4378da5e126a9a9803f7093e72ec2607 Mon Sep 17 00:00:00 2001 From: Denis Stebunov Date: Sat, 14 Dec 2024 19:52:45 +0200 Subject: [PATCH] get rid of .simpleFooter content parameter --- assets/sass/_footer.scss | 2 +- content/blog/_index.md | 1 - layouts/_default/baseof.html | 10 ++++- layouts/blog/blog.html | 9 +++- layouts/blog/single.html | 8 ++++ layouts/partials/blog-footer.html | 17 +++++++ layouts/partials/footer.html | 74 ++++++++++++------------------- layouts/partials/header.html | 14 +++--- 8 files changed, 77 insertions(+), 58 deletions(-) create mode 100644 layouts/partials/blog-footer.html diff --git a/assets/sass/_footer.scss b/assets/sass/_footer.scss index e6c5544..50bf971 100644 --- a/assets/sass/_footer.scss +++ b/assets/sass/_footer.scss @@ -85,7 +85,7 @@ } } - &--simple { + &--blog { background: #eceefd; color: $primary-violet; } diff --git a/content/blog/_index.md b/content/blog/_index.md index 5632392..2529886 100644 --- a/content/blog/_index.md +++ b/content/blog/_index.md @@ -3,7 +3,6 @@ title: Blog - ivelum description: ivelum is a distributed team of engineers headquartered in Vilnius, Lithuania. We've been helping both start-ups and established businesses build their products since 2003 layout: blog cascade: - simpleFooter: true sitemap: disable: true --- diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 8c71a80..8007d03 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -66,10 +66,18 @@ {{- end }} - {{ partial "header.html" . }} + +{{- block "header" . }} + {{ partial "header.html" (dict "context" . "TalkToUsAbsolute" false) }} +{{ end }} + {{- block "main" . }} {{- end }} + +{{- block "footer" . }} {{ partial "footer.html" . }} +{{- end }} +