Add email reply button for blog posts

This commit is contained in:
Foster Hangdaan 2024-10-06 09:37:08 -04:00
parent e9c13a26c9
commit 80100b2cc5
Signed by: foster
GPG key ID: E48D7F49A852F112

View file

@ -17,7 +17,7 @@ interface Data {
}
export default function (
{ children, toc, footnotes, lemmy }: Data & Lume.Data,
{ children, toc, footnotes, lemmy, title }: Data & Lume.Data,
) {
return (
<>
@ -58,6 +58,21 @@ export default function (
Discuss on Lemmy
</a>
)}
{title && (
<a
href={`mailto:foster@hangdaan.email?subject=${
encodeURI("RE: " + title)
}`}
className="button"
>
<img
alt="email icon"
className="icon"
src="https://minio.fosterhangdaan.com/public/images/icons/tabler-icons/3.14.0/outline/mail.svg"
/>
Email reply
</a>
)}
</div>
{footnotes.length > 0 &&
(