Add hideReply functionality to pages

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.
This commit is contained in:
Christian Mutti 2024-04-15 21:47:58 -03:00
parent 729a354f4c
commit 59c4123075
2 changed files with 4 additions and 1 deletions

View file

@ -16,6 +16,7 @@
<a class="blog-tags" href="{{ .RelPermalink }}">#{{ lower .LinkTitle }}</a>
{{ end }}
</p>
{{ if not .Params.hideReply }}
{{ with .Site.Params.author.email }}
<p>
<a href='mailto:{{ . }}?subject={{ i18n "email-subject" }}"{{ default $.Site.Title $.Page.Title }}"'>
@ -24,3 +25,4 @@
</p>
{{ end }}
{{ end }}
{{ end }}