diff --git a/src/components/NoteGraphSidebar.astro b/src/components/NoteGraphSidebar.astro
index 71ceadf..ae91926 100644
--- a/src/components/NoteGraphSidebar.astro
+++ b/src/components/NoteGraphSidebar.astro
@@ -10,9 +10,10 @@ interface Props {
graphEdges: { from: string; to: string }[];
forwardLinks: CollectionEntry<"notes">[];
backlinks: CollectionEntry<"notes">[];
+ externalLinks: { url: string; label: string }[];
}
-const { entry, graphNodes, graphEdges, forwardLinks, backlinks } = Astro.props;
+const { entry, graphNodes, graphEdges, forwardLinks, backlinks, externalLinks } = Astro.props;
---
-
+
{
graphNodes.length < 2 && (
@@ -90,6 +91,31 @@ const { entry, graphNodes, graphEdges, forwardLinks, backlinks } = Astro.props;
)
}
+ {
+ externalLinks.length > 0 && (
+
+
+ external
+
+
+ {externalLinks.map(({ url, label }) => (
+ -
+
+ ↗ {label}
+
+
+ ))}
+
+
+ )
+ }
+