From c7b295c65af032e17de9a4386e00f5997940ef03 Mon Sep 17 00:00:00 2001
From: Adrian Föder <adrian@foeder.de>
Date: Wed, 07 Aug 2024 06:33:35 +0000
Subject: [PATCH] feat: allow hiding of images and videos
---
layouts/_default/baseof.html | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 5784276..b1023e9 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -10,14 +10,14 @@
<div class="fs-split">
<!-- Image -->
- {{ if .Site.Params.visual.image.enable }}
+ {{ if .Params.visual.image.enable | default .Site.Params.visual.image.enable }}
<div class="split-image">
</div>
<!-- Video -->
- {{ else if .Site.Params.visual.video.enable }}
+ {{ else if .Params.visual.video.enable | default .Site.Params.visual.video.enable }}
{{ partial "video" . }}
--
Gitblit v1.10.0