From 283662fb44a19c6ab7a8f14b510506edd8c02950 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 24 Jul 2022 23:46:23 +0200 Subject: Allow disable hypothesis on custom pages --- layouts/partials/sidebar.html | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'layouts/partials/sidebar.html') diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 7df1a2a..59d2360 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -22,11 +22,9 @@ {{- end }} - - - {{ i18n "annotate" }} - - + {{- if ne .Params.annotations false }} + {{ partial "hypothesis.html" . }} + {{- end }} {{- with site.Menus.feeds }}