diff options
| author | Dawid Rycerz <dawid@rycerz.xyz> | 2025-07-03 14:23:49 +0300 |
|---|---|---|
| committer | Dawid Rycerz <dawid@rycerz.xyz> | 2025-07-03 14:23:49 +0300 |
| commit | e28e2c961659f48177cf8ce39eeb39480b221535 (patch) | |
| tree | 1138c3de714524db5eadab19df528402f42d8f67 /src/components/note/Note.astro | |
| parent | 4b9018b6d92ef8f1854d9dc44625295c2acd3fb3 (diff) | |
Fix markdown rendering of pleroma posts
Diffstat (limited to 'src/components/note/Note.astro')
| -rw-r--r-- | src/components/note/Note.astro | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/components/note/Note.astro b/src/components/note/Note.astro index 54d1fc0..a8cf205 100644 --- a/src/components/note/Note.astro +++ b/src/components/note/Note.astro @@ -44,5 +44,22 @@ const { Content } = await render(note); class:list={{ "line-clamp-6": isPreview }} > <Content /> + { + !isPreview && note.data.sourceUrl && ( + <> + <hr class="mt-6 mb-4 border-t border-gray-300 dark:border-gray-600" /> + <p class="text-sm text-gray-600 dark:text-gray-400"> + <a + href={note.data.sourceUrl} + class="cactus-link" + target="_blank" + rel="noopener noreferrer" + > + View original post → + </a> + </p> + </> + ) + } </div> </article> |
