From fbd1233ac75ac2164da63401d9aa7db2d4c8033a Mon Sep 17 00:00:00 2001 From: Alexander01998 Date: Tue, 10 Dec 2024 15:13:45 +0100 Subject: [PATCH] Turn off ads on 404 pages --- layouts/404.html | 4 ++++ layouts/_default/baseof.html | 2 ++ 2 files changed, 6 insertions(+) diff --git a/layouts/404.html b/layouts/404.html index 43a86ae..8f84922 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -5,3 +5,7 @@ {{ end }} + +{{ define "ads" }} + +{{ end }} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index fce04da..80ced1e 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -28,8 +28,10 @@ {{ partialCached "plausible" . }} + {{ block "ads" . -}} + {{- end }}