From: Duje Mihanović <duje.mihanovic@skole.hr> Date: Wed, 4 Dec 2024 16:07:08 +0000 (+0100) Subject: Add 'Reply to email' button X-Git-Url: http://git.dujemihanovic.xyz/img/static/%7B%7B%20%24.Site.BaseURL%20%7D%7Dposts/%7B%7B%20%24style.RelPermalink%20%7D%7D?a=commitdiff_plain;ds=sidebyside;p=hugo-skeleton.git Add 'Reply to email' button --- diff --git a/layouts/partials/reply.html b/layouts/partials/reply.html new file mode 100644 index 0000000..6f28ecf --- /dev/null +++ b/layouts/partials/reply.html @@ -0,0 +1 @@ +<a href="mailto:{{ print .Site.Params.author.email }}?subject=Re: {{ print .Title }}">Reply via email</a> diff --git a/layouts/posts/single.html b/layouts/posts/single.html index e49cbb0..afb4e5b 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -9,4 +9,5 @@ <i>Last modified on {{ .Lastmod.Format "January 2, 2006" }}</i></p> <p></p> {{ .Content }} + {{ partial "reply.html" . }} {{ end }}