Skip to content

Commit 21a184d

Browse files
committed
Added rel external nofollow for external links
1 parent 6908c7c commit 21a184d

File tree

2 files changed

+1
-0
lines changed

2 files changed

+1
-0
lines changed

content/.gitkeep

Whitespace-only changes.

quartz/plugins/transformers/links.ts

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export const CrawlLinks: QuartzTransformerPlugin<Partial<Options> | undefined> =
6262
classes.push(isExternal ? "external" : "internal")
6363

6464
if (isExternal && opts.externalLinkIcon) {
65+
node.properties.rel = "external nofollow";
6566
node.children.push({
6667
type: "element",
6768
tagName: "svg",

0 commit comments

Comments
 (0)