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 e7c71bc
Showing 1 changed file with 1 addition and 0 deletions.
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 e7c71bc

Please sign in to comment.