✨ feat(title): add invert_title_order
config option
#142
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces a new configuration option
invert_title_order
that allows users to customize the order of the "site title" and "page title" in browser tabs.Linked issue
Resolves #135.
Changes made
invert_title_order
boolean setting toconfig.toml
andtheme.toml
.set_title.html
macro to incorporate the newinvert_title_order
setting.config.toml
andtheme.toml
documentation to explain the new feature.Reasoning
With longer site titles, the page title can sometimes be obscured when viewed in the browser tab. The new
invert_title_order
setting provides users with more flexibility by allowing the page title to be displayed before the site title. This improves the user experience by making the current page content more prominent when browsing between tabs.Example
The default title is formed like:
If the setting is
true
, the title would become: