]> git.dujemihanovic.xyz Git - hugo-skeleton.git/commitdiff
Add 'Reply to email' button master
authorDuje Mihanović <duje.mihanovic@skole.hr>
Wed, 4 Dec 2024 16:07:08 +0000 (17:07 +0100)
committerDuje Mihanović <duje.mihanovic@skole.hr>
Wed, 4 Dec 2024 16:07:08 +0000 (17:07 +0100)
layouts/partials/reply.html [new file with mode: 0644]
layouts/posts/single.html

diff --git a/layouts/partials/reply.html b/layouts/partials/reply.html
new file mode 100644 (file)
index 0000000..6f28ecf
--- /dev/null
@@ -0,0 +1 @@
+<a href="mailto:{{ print .Site.Params.author.email }}?subject=Re: {{ print .Title }}">Reply via email</a>
index e49cbb0277fd95904645357bd1cd76dbf1b1ec7c..afb4e5b1de4ab31b54d145695dbabb2fc7db8d30 100644 (file)
@@ -9,4 +9,5 @@
  <i>Last modified on {{ .Lastmod.Format "January 2, 2006" }}</i></p>
  <p></p>
  {{ .Content }}
+ {{ partial "reply.html" . }}
 {{ end }}