diff --git a/quartz/components/Backlinks.tsx b/quartz/components/Backlinks.tsx index aa412a2e0..a28529a00 100644 --- a/quartz/components/Backlinks.tsx +++ b/quartz/components/Backlinks.tsx @@ -12,24 +12,20 @@ const Backlinks: QuartzComponent = ({ }: QuartzComponentProps) => { const slug = simplifySlug(fileData.slug!) const backlinkFiles = allFiles.filter((file) => file.links?.includes(slug)) - return ( + return backlinkFiles.length <= 0 ? null : (

{i18n(cfg.locale).components.backlinks.title}

- ) + ); } Backlinks.css = style