From 74329c51844759d20e973f30fdcc173bf833be95 Mon Sep 17 00:00:00 2001 From: Francesco Date: Mon, 29 Apr 2024 19:56:50 +0200 Subject: Removed unnecessary homeIntro parameter, cleaned up layouts --- layouts/_default/home.html | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'layouts/_default/home.html') diff --git a/layouts/_default/home.html b/layouts/_default/home.html index bc3aad8..e251ce3 100644 --- a/layouts/_default/home.html +++ b/layouts/_default/home.html @@ -3,18 +3,17 @@ {{ .Content }} {{/* Intro summary section */}} -{{ if .Site.Params.homeIntro }} +{{ if or .Site.Params.homeIntroTitle .Site.Params.homeIntroContent }}
- {{ if .Site.Params.homeIntroTitle }} -

{{ .Site.Params.homeIntroTitle }}

+ {{ with .Site.Params.homeIntroTitle }} +

{{ . }}

{{ end }} - {{ if .Site.Params.homeIntroContent }} -

{{ .Site.Params.homeIntroContent | markdownify }}

+ {{ with .Site.Params.homeIntroContent }} +

{{ . | markdownify }}

{{ end }}
- {{ end }} {{/* Social Icons */}} -- cgit v1.2.3