Skip to content

feat: make site wordmark configurable via site_name - #30

Merged
stahnma merged 1 commit into
productionfrom
feat/configurable-site-name
Jul 17, 2026
Merged

stahnma merged 1 commit into
productionfrom
feat/configurable-site-name

Conversation

@stahnma

@stahnma stahnma commented Jul 17, 2026

Copy link
Copy Markdown
Member

Summary

The tumblefish wordmark was hardcoded in page titles and the masthead
across five templates. This makes it a config value.

  • New site_name config field (TUMBLE_SITE_NAME), default "tumblefish"
  • Exposed to HTML templates via a siteName helper that closes over config
    in renderer.go — reaches both the shared header.html partial and the
    per-page <title>s from a single config read, no handler data-struct
    changes
  • Replaced the hardcoded string in header.html, index.html,
    quote_permalink.html, stats.html, link_posted.html

Behavior

  • Unset = identical to today: defaults to tumblefish, so existing
    deployments render exactly as before.
  • Independent of RSS site_title: the visible brand and the feed title
    can differ, preserving the current split (masthead tumblefish vs RSS
    fallback tumble).

Verification

  • gofmt clean, git diff --check clean, make build succeeds, all test
    packages pass
  • Default render → tumblefish.stats / masthead tumblefish. (unchanged)
  • TUMBLE_SITE_NAME=linkfish → linkfish.stats / masthead linkfish.,
    RSS channel title unaffected

The "tumblefish" wordmark was hardcoded in page titles and the
masthead across five templates. Add a site_name config value
(TUMBLE_SITE_NAME), exposed to HTML templates through a siteName
helper that closes over config, and replace the hardcoded string.

Defaults to "tumblefish" so existing deployments are unchanged, and
it stays independent of the RSS site_title so the visible brand and
the feed title can differ.
@stahnma
stahnma merged commit 6f0862a into production Jul 17, 2026
1 check passed
@stahnma
stahnma deleted the feat/configurable-site-name branch July 17, 2026 03:55
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