From 61741df3f7efeebdc1462a72b8c5ca33e44814f1 Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Mon, 13 Apr 2020 10:42:32 -0400 Subject: [PATCH] don't preconnect to utteranc.es endpoints if comments disabled --- layouts/partials/head/preload.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/head/preload.html b/layouts/partials/head/preload.html index 8b0b6178..71faf752 100644 --- a/layouts/partials/head/preload.html +++ b/layouts/partials/head/preload.html @@ -1,6 +1,6 @@ {{ if eq hugo.Environment "production" }} - {{ if and .IsPage (eq .Type "notes") }} + {{ if and .IsPage (and (eq .Type "notes") (ne .Params.comments false)) }}