Skip to content
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

Merged
merged 18 commits into from
Oct 31, 2024
Merged

SEO #6

merged 18 commits into from
Oct 31, 2024

Conversation

ten1seven
Copy link
Contributor

@ten1seven ten1seven commented Oct 25, 2024

Getting all of the SEO added, Astro/Netlify style:

CleanShot 2024-10-25 at 11 32 41@2x

@ten1seven ten1seven self-assigned this Oct 25, 2024
Copy link

netlify bot commented Oct 25, 2024

Deploy Preview for pointlesscorp ready!

Name Link
🔨 Latest commit 623ee6e
🔍 Latest deploy log https://app.netlify.com/sites/pointlesscorp/deploys/6723d6ff9dd3410008b20d1d
😎 Deploy Preview https://deploy-preview-6--pointlesscorp.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 82
Accessibility: 94
Best Practices: 92
SEO: 100
PWA: -
View the detailed breakdown and full score reports

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';
---
{(() => {
Copy link
Contributor Author

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.

Comment on lines 30 to 33
const aboutTextString = story.content.aboutText.content
.map(paragraph => paragraph.content
.map(item => item.text)
.join(''));
Copy link
Contributor

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('');

@ten1seven ten1seven merged commit 623ee6e into jdf/project-page-ui-buildout Oct 31, 2024
@ten1seven ten1seven deleted the jdf/seo branch October 31, 2024 19:15
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.

2 participants