Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ feat(title): add invert_title_order config option #142

Merged
merged 1 commit into from
Sep 9, 2023

Conversation

welpo
Copy link
Owner

@welpo welpo commented Sep 9, 2023

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

  • Added invert_title_order boolean setting to config.toml and theme.toml.
  • Modified set_title.html macro to incorporate the new invert_title_order setting.
  • Updated config.toml and theme.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:

~/tabi • Secure by default

If the setting is true, the title would become:

Secure by default • ~/tabi

@welpo welpo added the enhancement New feature or request label Sep 9, 2023
@welpo welpo merged commit 9acaba6 into main Sep 9, 2023
1 check passed
@welpo welpo deleted the feat/invert-title-order branch September 9, 2023 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option to have page title before site title in <title>
1 participant