Skip to content

"Powered by goblog": link goblog.live, render from a shared partial, add a setting to hide it - #644

Merged
compscidr merged 2 commits into
mainfrom
fix/powered-by-link
Oct 3, 2026
Merged

compscidr merged 2 commits into
mainfrom
fix/powered-by-link

Conversation

@compscidr

@compscidr compscidr commented Oct 3, 2026 •

Copy link
Copy Markdown
Collaborator

Why

The "Powered by goblog" link pointed at the old github.com/compscidr/goblog URL, was written out separately in the default footer, the three wizard pages and every theme that ships its own footer, and could not be turned off.

What

  • New shared partial templates/shared/_powered_by.html defines _powered_by: <span class="powered-by">Powered by <a href="https://www.goblog.live">goblog <version></a></span>. A theme includes it with {{ template "_powered_by" . }} inside whatever element it styles the line with.
  • New show_powered_by checkbox setting, seeded on, under Admin → Settings → Appearance. When off, the partial renders nothing.
  • The credit still shows when the setting does not exist yet (a site mid-upgrade) and on the wizard pages, which have no settings.
  • Default theme footer.html and wizard_auth.html / wizard_db.html / wizard_settings.html now call the partial.
  • writing-a-theme.md documents the partial.

Testing

go test ./... passes. New TestPoweredBy covers the partial with the setting on, off, unseeded and absent, and that footer.html honours it. Not checked in a browser.

Follow-up (not in this PR)

goblog-theme-forest, goblog-theme-minimal and goblog-site-theme each hardcode their own "Powered by" line linking to the GitHub repo. Until they switch to {{ template "_powered_by" . }}, the setting has no effect on sites using them. A theme that uses the partial needs a goblog release that includes it.

🤖 Generated with Claude Code

The footer and the three wizard pages linked to the old
github.com/compscidr/goblog URL. Link the official site instead, so
every install's footer points at it.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 3, 2026 06:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The change is a simple, complete, and consistent template-only URL update with no remaining old-URL references and no logic impact.

Review effort: Balanced
Findings: None

What changed in this PR

This PR updates the "Powered by goblog" attribution links in the default theme to point at the official site, https://www.goblog.live, instead of the old source-repo URL https://github.com/compscidr/goblog. This helps drive inbound links to the official site, which appears on every GoBlog install's footer and install-wizard pages. The change is template-only and matches the canonical www.goblog.live domain already used throughout the repository (README, installer constants, and settings seeds).

Changes:

  • Updated the footer attribution link in the default theme.
  • Updated the attribution links on the three install-wizard pages (auth, db, settings).
File Description
themes/​default/​templates/​footer.html Repoints the footer "Powered by goblog" href to goblog.live
themes/​default/​templates/​wizard_auth.html Repoints the wizard auth page attribution link to goblog.live
themes/​default/​templates/​wizard_db.html Repoints the wizard db page attribution link to goblog.live
themes/​default/​templates/​wizard_settings.html Repoints the wizard settings page attribution link to goblog.live

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@codecov

codecov Bot commented Oct 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

…etting to hide it

The link was written out in the default theme's footer, the wizard pages
and every theme with its own footer. Move it to templates/shared as
_powered_by, which themes include with one line, and add a
show_powered_by checkbox setting (Appearance, on by default) that hides
it. Sites upgraded before the setting is seeded, and the wizard pages,
which have no settings, keep showing it.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@compscidr compscidr changed the title Point the "Powered by goblog" links at goblog.live "Powered by goblog": link goblog.live, render from a shared partial, add a setting to hide it Oct 3, 2026
@compscidr
compscidr merged commit 36fa526 into main Oct 3, 2026
1 check passed
@compscidr
compscidr deleted the fix/powered-by-link branch October 3, 2026 07:16
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.

2 participants