summaryrefslogtreecommitdiff
path: root/src/components/note/Note.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/note/Note.astro')
-rw-r--r--src/components/note/Note.astro17
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>