Skip to content

Templates: Added the theme's name and version to the footer - #173

Merged
whereareiam merged 1 commit into
devfrom
feat/footer-theme-credit
Oct 31, 2026
Merged

whereareiam merged 1 commit into
devfrom
feat/footer-theme-credit

Conversation

@whereareiam

@whereareiam whereareiam commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner

Summary

The page footer now credits the theme: GitHub Theme 1.4.0, linking to this repository. It sits after Forgejo's own links (language, Licenses, API) and before any custom footer links, with the same look, hover and phone layout.

  • Version: the release build sets THEME_VERSION to the release tag, and scripts/assembleForgejo.ts stamps it into base/footer_content.tmpl. Any other build shows what git describe --tags says, such as 1.4.0-1-g9482e2f for a build one commit after 1.4.0, so a development build is never mistaken for a release. Without git it shows dev.
  • Turning it off: admins add --custom-footer-credit: none to :root, like the other --custom-* switches. It is in the README's CSS variables table.
  • Text: only the theme's name and version, no new English sentence.

Before and after

The footer of /explore/repos at 1280px (light and dark) and 390px, signed in. The screenshots come from a development build, so the version is git's description of the commit rather than a release number.

Before After
Before: light footer After: light footer
Before: dark footer After: dark footer
Before: phone footer After: phone footer

With --custom-footer-credit: none:

Credit hidden

Release notes

  • The title follows Area: Description with a listed area
  • The title describes the effect in the past tense, for example Branches: Fixed ...
  • Exactly one label: feature, change, bug, dependencies, or skip-changelog
  • bug only for a bug that shipped in a release; a fix for a bug that only existed on dev is skip-changelog
  • major added when admins must act on upgrade, for example a new minimum Forgejo version (not needed)
  • Upgrade steps or warnings added to .github/release-notes.md, if admins need them (not needed)

Checks

  • Tests added or updated
  • Checked in the dev preview at desktop and phone width, in dark and light mode

bun bundle, bun vitest (569 tests) and Prettier pass. bun lint fails on dev as well: typescript-eslint does not support TypeScript 7.

🤖 Generated with Claude Code

The footer links the theme's GitHub repository with its name and version, beside
Forgejo's own links. The release build stamps the release tag; other builds show
git's description, such as 1.4.0-3-g54b4d73. Admins hide it with
--custom-footer-credit: none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@whereareiam whereareiam added the feature Something new for users label Oct 31, 2026
@whereareiam
whereareiam merged commit de5f9d4 into dev Oct 31, 2026
7 of 8 checks passed
@whereareiam
whereareiam deleted the feat/footer-theme-credit branch October 31, 2026 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Something new for users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant