Authors

  • avatar
    Name
    John Doe
    Details
    Author
  • 3 min read

Tags

Homepage SEO: What Makes It Unique & How to Do It

Fast and Full-featured

Optimizing your homepage for SEO is different from working on blog posts or product pages. Unlike those pages, your homepage serves as the central hub of your site, and it usually doesn’t focus on just one keyword.

Pagefind is a search library for static websites. Micro uses Sergey Shishkin’s astro-pagefind integration. This integration simplifies development and does not require any changes to the default build script.

Press / or CTRL + K to open the search dialog. For Mac users, + K can also be used. To dismiss the search dialog, press Esc or click on an area outside the component.

Build and develop

The site **must** be built at least once so Pagefind can index the content.
# Pagefind must index the site to function
npm run build

When developing you can continue to use npm run dev and Pagefind will use the index from the last available build.


Giscus comments 💬

Giscus leverages Github discussions to act as a comments system. To get Giscus working on your own website, see here.


Callout component 🆕

Adipisicing et officia reprehenderit fugiat occaecat cupidatat exercitation labore consequat ullamco nostrud non. Adipisicing et officia reprehenderit fugiat occaecat cupidatat exercitation labore consequat ullamco nostrud non. Adipisicing et officia reprehenderit fugiat occaecat cupidatat exercitation labore consequat ullamco nostrud non. Adipisicing et officia reprehenderit fugiat occaecat cupidatat exercitation labore consequat ullamco nostrud non.

UI enhancements 🎨

  • Elements are styled and animate on focus
  • Increased contrast in light mode
  • Active theme is indicated by theme buttons
  • Separate syntax highlight themes for light and dark mode
  • Code blocks have a copy button
  • Add pagination to the bottom of blog posts
  • Create 404 page
  • Add ToC component to posts

Other changes

  • Change fonts to Geist Sans and Geist Mono
  • Switch base color from “stone” to “neutral”
  • Change formatted date to use “long” option for month
  • Minor spacing changes throughout
  • Remove “work” collection and components
    • If desired, you can get the code from Astro Nano
  • Slightly increased link decoration offset
  • Slightly sped-up animations
  • Reversed animation
  • Ensure posts use an h1 tag for post titles
  • Tweaked typography

Issues ⚠️

Active issues

Closed issues

Related Posts