Add email reply button for blog posts
This commit is contained in:
parent
e9c13a26c9
commit
80100b2cc5
1 changed files with 16 additions and 1 deletions
|
@ -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 &&
|
||||
(
|
||||
|
|
Loading…
Reference in a new issue