Skip to content

Commit

Permalink
meta: run prerender on prerender-status-code only if there is no og, …
Browse files Browse the repository at this point in the history
…twitter or ld
  • Loading branch information
iparamonau committed Jun 17, 2024
1 parent aa1925a commit b53f89f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/links/prerender/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default {
|| meta.og && !meta.og.title && title && meta.og.site_name === title; // e.g. Medium

return maybeApp
|| meta['prerender-status-code']
|| meta['prerender-status-code'] && !meta.og && !meta.twitter && !meta.ld
|| /{{.+}}/.test(title) // eg. https://uwaterloo.ca/canadian-design-workshop/
}
};

0 comments on commit b53f89f

Please sign in to comment.