Add discussion link for blog posts
This commit is contained in:
parent
4a1e0cdfa4
commit
3652984f8b
5 changed files with 29 additions and 1 deletions
|
@ -16,7 +16,9 @@ interface Data {
|
|||
}[];
|
||||
}
|
||||
|
||||
export default function ({ children, toc, footnotes }: Data & Lume.Data) {
|
||||
export default function (
|
||||
{ children, toc, footnotes, lemmy }: Data & Lume.Data,
|
||||
) {
|
||||
return (
|
||||
<>
|
||||
{toc.length > 0 &&
|
||||
|
@ -45,6 +47,18 @@ export default function ({ children, toc, footnotes }: Data & Lume.Data) {
|
|||
<article>
|
||||
{children}
|
||||
</article>
|
||||
<div className="button-group section">
|
||||
{lemmy && (
|
||||
<a href={lemmy} className="button">
|
||||
<img
|
||||
alt="message icon"
|
||||
className="icon"
|
||||
src="https://minio.fosterhangdaan.com/public/images/icons/tabler-icons/3.14.0/outline/message.svg"
|
||||
/>
|
||||
Discuss on Lemmy
|
||||
</a>
|
||||
)}
|
||||
</div>
|
||||
{footnotes.length > 0 &&
|
||||
(
|
||||
<ol className="footnotes">
|
||||
|
|
|
@ -355,6 +355,7 @@ .button {
|
|||
justify-items: center;
|
||||
padding: 0.5em;
|
||||
border: 1px solid var(--color-green);
|
||||
text-decoration: none;
|
||||
|
||||
img.icon {
|
||||
font-size: 1.25em;
|
||||
|
@ -369,3 +370,13 @@ .button {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
.button-group {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.section {
|
||||
margin: 3rem auto;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: Favourite Colour Palettes
|
||||
description: My favourite colour palettes ranked in descending order.
|
||||
lemmy: https://lemmy.fosterhangdaan.com/post/2155
|
||||
tags:
|
||||
- themes
|
||||
- design
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: Retro Gaming on an Old Laptop
|
||||
description: How to convert an old laptop into a retro gaming station.
|
||||
lemmy: https://lemmy.fosterhangdaan.com/post/2157
|
||||
tags:
|
||||
- linux
|
||||
- gaming
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: Make Your Own DDNS
|
||||
description: A guide on how to setup a DDNS-like system using Cron and a Deno script.
|
||||
lemmy: https://lemmy.fosterhangdaan.com/post/2159
|
||||
tags:
|
||||
- linux
|
||||
- guide
|
||||
|
|
Loading…
Reference in a new issue