Skip to content

fix(blog): use getSiteSettings() instead of hardcoded site title#3

Open
tgfjt wants to merge 2 commits intoemdash-cms:mainfrom
tgfjt:fix/blog-use-site-settings
Open

fix(blog): use getSiteSettings() instead of hardcoded site title#3
tgfjt wants to merge 2 commits intoemdash-cms:mainfrom
tgfjt:fix/blog-use-site-settings

Conversation

@tgfjt
Copy link
Copy Markdown

@tgfjt tgfjt commented Apr 3, 2026

Hi, thanks for building this — it's really cool. I've been trying it out!

Summary

  • Replace hardcoded "My Blog" title and "Thoughts, stories, and ideas." tagline with dynamic values from getSiteSettings() in both blog/ and blog-cloudflare/ templates
  • Site name and tagline configured in the admin Settings panel are now reflected across all pages (layout, index, post detail, RSS feed)
  • Follows the same settings?.title || "fallback" pattern already used in portfolio, portfolio-cloudflare, marketing, and marketing-cloudflare templates

Changed files (4 per template × 2 templates = 8 files)

File Change
src/layouts/Base.astro Import getSiteSettings, replace hardcoded title/tagline
src/pages/index.astro Import getSiteSettings, use dynamic title/description
src/pages/posts/[slug].astro Import getSiteSettings, use dynamic siteTitle in getSeoMeta()
src/pages/rss.xml.ts Import getSiteSettings, fetch title/description inside GET handler

Not changed (already using getSiteSettings())

  • marketing/ & marketing-cloudflare/
  • portfolio/ & portfolio-cloudflare/

Test plan

  • Start dev server for blog-cloudflare (npx emdash dev)
  • Change site title and tagline in admin Settings
  • Verify title updates in: header, footer, <title> tag, RSS feed
  • Verify tagline updates in: footer, homepage meta description
  • Repeat for blog/ template

tgfjt added 2 commits April 3, 2026 17:28
Replace hardcoded "My Blog" title and tagline across blog and
blog-cloudflare templates with dynamic values from getSiteSettings(),
so that changes made in the admin Settings panel are reflected on
the site.
Match the settings?.title || "fallback" pattern used in
portfolio and marketing templates instead of settings.title ?? "fallback".
@tgfjt tgfjt force-pushed the fix/blog-use-site-settings branch from 45e539d to 1b839a0 Compare April 3, 2026 08:28
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.

1 participant