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/%22http:/www.sics.se/static/static/gitweb.css?a=commitdiff_plain;h=HEAD;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 }}