-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SEO #6
SEO #6
Conversation
✅ Deploy Preview for pointlesscorp ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -41,6 +43,21 @@ import logoLargeWhite from '../images/svgs/pointless-logo-large--white.svg'; | |||
import iconX from '../images/svgs/x.svg?raw'; | |||
import '../styles/global.css'; | |||
--- | |||
{(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was really weird and it even led me to a recent bug report by Henry! Moving this code outside the frontmatter fixed it not wanting to access the env variables.
src/pages/index.astro
Outdated
const aboutTextString = story.content.aboutText.content | ||
.map(paragraph => paragraph.content | ||
.map(item => item.text) | ||
.join('')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might be able to use flat map here so that there is less nesting.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flatMap
It's a subtle change, but more "flat"
const aboutTextString = story.content.aboutText.content
.flatMap(paragraph => paragraph.content)
.map(item => item.text)
.join('');
Getting all of the SEO added, Astro/Netlify style: