-
Notifications
You must be signed in to change notification settings - Fork 8
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 Improvements #172
Merged
Merged
SEO Improvements #172
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
They were fixed by commenting out an old link to a "training.html" that doesn't exist anymore (retaining the rest of the page), and changing a link to use mailto for an email address (same as what was used in the careers page)
Added an "s" to an http link, fixed a broken link and found that when on a blog and selecting the category (which will then filter the blogs for that category), it doesn't display anything, this needs to be fixed in the future or the functionality should just be removed.
Integrated @astrojs/sitemap with a filter to exclude pages with query parameters. Added robots meta tag to blog posts to prevent indexing, subsequently updating the Layout.astro to support optional robots meta tag configuration. Finally, I compressed some blog post images to ensure they are not too large when turned into webp's.
For indexing purposes, there can only be a single h1 per page, for most blog posts since there was a title in h1 already, I had to adjust the rest to the rest of the subtitles to be h2 and below, For the careers page, each position listing had an h1, so I changed this. For the "Team" pages, there were two h1's within the greetings that needed to be adjusted. Finally, an adjustment to prettierignore had to be made to avoid a formatting problem.
I've added meta titles, titles, descriptions and h1's to help enhance the SEO of multiple pages.
Added meta descriptions to various pages that were missing them (with the help of ai). Prettier also helped to format multiple files.
I increased or decreased the size for meta descriptions to best fit their ability within SEO scores, usually between 100-150 characters. There are also some code formatting adjustments.
Added and modified the length of title metadata in critical pages on the astro website.
Most of these errors were due to the footer not having proper alt text, which is found on most pages. The same can be said for the recommended blog cards and author images, so they now have text too. Two contact us pages also needed alt text for company images.
Had accidently used ' 3 times within descriptions, which I've not adjusted to use ", fixing the error.
I've adjusted the h1's so that they span the whole greetings title, allowing them to include the important SEO info!
✅ Deploy Preview for juxt-website ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes aimed at improving the codebase, primarily focusing on enhancing SEO, adding image alt attributes for better accessibility, and updating configurations. The most important changes include updates to the Astro configuration, the addition of alt attributes to images, and SEO improvements.
Configuration Updates:
astro.config.ts
: Added thesitemap
integration and updated theinspectUrls
configuration to use single quotes. [1] [2].prettierrc.js
: Includedmdx
files in the Prettier configuration..prettierignore
: Ignored a specific MDX file with JSX comments.Accessibility Improvements:
src/components/BlogCard.tsx
: Addedalt
attributes to images in theBlogAuthor
andBlogCard
components. [1] [2]src/components/ContactUs.tsx
andsrc/components/ContactUsTech.tsx
: Added descriptivealt
attributes to client and tech logos. [1] [2]src/components/Footer.astro
: Addedalt
attributes to images in the footer. [1] [2] [3]SEO Improvements:
src/data/metadata.json
: Updated titles and descriptions for various sections to improve SEO. [1] [2] [3] [4] [5]src/layouts/BlogPost.astro
: Addedrobots
meta tag to control indexing of blog posts.src/layouts/Layout.astro
: Addedrobots
property toLayoutProps
type.Content Updates:
src/data/get-started/delivery.md
: Updated the title and description to better reflect the content.src/components/XT25Page.astro
: Simplified the event description for the XT25 Fintech Conference.Code Style and Formatting:
src/components/team/GreetingSection.astro
: Reformatted code for better readability and consistency. [1] [2]