-
Notifications
You must be signed in to change notification settings - Fork 55
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
UX: Add THEME_SITENAME as a suffix in <head> #382
base: master
Are you sure you want to change the base?
Conversation
@@ -26,8 +26,7 @@ | |||
{%- endblock head_meta %} | |||
|
|||
{%- block head_title %} | |||
{%- set title = title or _(config.THEME_SITENAME) or _('Invenio') %} | |||
<title>{{title}}</title> | |||
<title>{%- if title %}{{title}} | {% endif -%}{{ _(config.THEME_SITENAME) or _('Invenio') }}</title> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM code-wise.
all the instances running invenio will be affected by this change, was that the goal ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, this is beneficial for all instances in my opinion
The only problem I can foresee is if they haven't set THEME_SITENAME
then they will have Invenio appended
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you add a section "Update configuration variables" under
https://github.com/inveniosoftware/docs-invenio-rdm/pull/607/files#diff-39da3e2af9ef047f00739348879d5a91714f7b1cf3f693c959a9e6154c2b9795R125
explaining exactly this? It should go into the upgrade guidelines for v12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a comment! btw this variable has already been contributed to cookiecutter :) inveniosoftware/cookiecutter-invenio-rdm#273
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok to merge from me if there is not a chance we'll have Zenodo | Zenodo
? For that we'll just need to check if title
is every set to config.THEME_SITENAME
❤️ Thank you for your contribution!
Description
Please describe briefly your pull request.
Currently the
<head>
is either the "<sitename>" or some custom string like "Communities", "Requests" etc. This PR results instead in "Communities | <sitename>", "Requests | <sitename>", etcChecklist
Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:
Third-party code
If you've added third-party code (copy/pasted or new dependencies), please reach out to an architect.
Reminder
By using GitHub, you have already agreed to the GitHub’s Terms of Service including that:
Close https://github.com/zenodo/ops/issues/390