From 1031f0c8c80268dc26a19e792bacf3e02321dd92 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Duje=20Mihanovi=C4=87?= <duje.mihanovic@skole.hr>
Date: Wed, 4 Dec 2024 17:07:08 +0100
Subject: [PATCH] Add 'Reply to email' button

---
 layouts/partials/reply.html | 1 +
 layouts/posts/single.html   | 1 +
 2 files changed, 2 insertions(+)
 create mode 100644 layouts/partials/reply.html

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 }}
-- 
2.39.5