Skip to content

Conversation

sawyerh
Copy link
Contributor

@sawyerh sawyerh commented Jul 13, 2023

@sawyerh sawyerh requested review from ellery-nava and a team July 13, 2023 01:49
function blockSearchEnginesInHead(head) {
return `
${head}
<meta name="robots" content="none">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

more for my own curiosity, is it stylistically preferrable to do self-closing tag like <meta .../> or is it better to be concise like <meta>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Timely question, you just reminded me of this recent spicy post that argued against self-closing tags since they're meaningless in HTML and are an artifact from XML. Pretty divisive topic it seems 😅 I might switch this to self-closing to be consistent with how Prettier formats tags though.

@sawyerh sawyerh merged commit f0cb429 into main Jul 13, 2023
@sawyerh sawyerh deleted the sawyerh/block-storybook-seo branch July 13, 2023 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Block search engines from indexing the Storybook site
2 participants