You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #96 from john-kurkowski/astro-seo
- Adopt `astro-seo` for canonical, description, Open Graph, Twitter, profile, and article metadata
- Make social preview image handling explicit across posts, including required alt text for image-backed posts and a new 1200x630 fallback image
- Use Netlify deploy-preview hosts for absolute metadata URLs so preview crawlers can fetch branch-only assets
- Add TypeScript metadata tests covering descriptions, social images, fallback metadata, and article Open Graph output
* Social metadata needs absolute URLs, but Netlify deploy previews must point at
5
+
* their preview host so crawlers can fetch assets before they exist in
6
+
* production.
7
+
*/
8
+
exportfunctiongetSiteUrl(env=process.env){
9
+
return(
10
+
env.DEPLOY_PRIME_URL||
11
+
env.DEPLOY_URL||
12
+
env.URL||
13
+
productionSiteUrl
14
+
).replace(/\/$/,"")
15
+
}
16
+
1
17
exportconstsiteMetadata={
2
18
description:
3
19
"With 14+ years in the game, I help frontend teams ship incrementally, with test coverage confidence, without rewrites. Debug any app, existing or legacy. Collaborate on distributed teams via docs, code review, and mentorship.",
0 commit comments