From e7b875a1fabbd6f5ca13b76cca994b606b1da593 Mon Sep 17 00:00:00 2001 From: Christian Mutti Date: Fri, 21 Jun 2024 16:21:25 -0300 Subject: Add `hideReply` functionality to pages (#18) Set the `hideReply` param on front matter to completely remove the "reply to" link present in the bottom of the pages. This is backwards-compatible given that any page that does not have the `hideReply` param will continue to work as before. --- layouts/_default/single.html | 2 ++ 1 file changed, 2 insertions(+) (limited to 'layouts') diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 4ff8d75..2baecc4 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -16,6 +16,7 @@ #{{ lower .LinkTitle }} {{ end }}

+{{ if not .Params.hideReply }} {{ with .Site.Params.author.email }}

@@ -24,3 +25,4 @@

{{ end }} {{ end }} +{{ end }} -- cgit v1.2.3