Comments: use variable for email address

This commit is contained in:
Marcel Kapfer 2021-08-19 10:36:47 +02:00
parent 8ae51c55f7
commit 86ad0801cd
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09

View file

@ -21,10 +21,10 @@
</p>
{{ .Content }}
{{ if .Site.Params.comment.comments }}
{{ if isset .Site.Params.comment "mail" }}
<div class="comment">
<p>I would like to hear what you think about this post. Feel free to write me a mail!</p>
<a class="btn" href="mailto:comment@mmk2410.org?subject=Reply to: &quot;{{ .Page.Title }}&quot;">Reply by mail</a>
<a class="btn" href="mailto:{{ .Site.Params.comment.mail }}?subject=Reply to: &quot;{{ .Page.Title }}&quot;">Reply by mail</a>
</div>
{{ end }}
{{ end }}