From 5138be9b03dc946fe5dd46b935694e6e60071d79 Mon Sep 17 00:00:00 2001 From: harshita91 Date: Thu, 6 Feb 2025 13:18:11 +0530 Subject: [PATCH] Fix: Prevent infinite recursion in head.html partial (#275) --- themes/microcks/layouts/_default/baseof.html | 6 ++++-- themes/microcks/layouts/documentation/baseof.html | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/themes/microcks/layouts/_default/baseof.html b/themes/microcks/layouts/_default/baseof.html index dccfe6c4..dc37358b 100644 --- a/themes/microcks/layouts/_default/baseof.html +++ b/themes/microcks/layouts/_default/baseof.html @@ -2,8 +2,10 @@ - - {{ partial "head.html" . }} + + {{ if not .IsHome }} + {{ partial "head.html" . }} + {{ end }} {{ if hugo.IsProduction }} diff --git a/themes/microcks/layouts/documentation/baseof.html b/themes/microcks/layouts/documentation/baseof.html index 84274882..50d49674 100644 --- a/themes/microcks/layouts/documentation/baseof.html +++ b/themes/microcks/layouts/documentation/baseof.html @@ -4,8 +4,10 @@ itemscope itemtype="http://schema.org/WebPage"> - - {{ partial "essentials/head.html" . }} + + {{ if not .IsHome }} + {{ partial "essentials/head.html" . }} + {{ end }}