Skip to content

Commit

Permalink
Added rel external nofollow for external links
Browse files Browse the repository at this point in the history
  • Loading branch information
sudiptosarkar committed Jul 16, 2024
1 parent 6908c7c commit 21a184d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
Empty file removed content/.gitkeep
Empty file.
1 change: 1 addition & 0 deletions quartz/plugins/transformers/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export const CrawlLinks: QuartzTransformerPlugin<Partial<Options> | undefined> =
classes.push(isExternal ? "external" : "internal")

if (isExternal && opts.externalLinkIcon) {
node.properties.rel = "external nofollow";
node.children.push({
type: "element",
tagName: "svg",
Expand Down

0 comments on commit 21a184d

Please sign in to comment.