-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#2375] Add new {% block subtitle %} to base.html
Saves us using the delimiter all over the place in the templates.
- Loading branch information
Showing
1 changed file
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,13 @@ | |
{% block title %}My Subtitle - {{ super() }}{% endblock %} | ||
|
||
#} | ||
<title>{% block title %}{{ g.site_title }}{% endblock %}</title> | ||
<title> | ||
{%- block title -%} | ||
{%- block subtitle %}{% endblock -%} | ||
{%- if self.subtitle()|trim %} {{ config.template_title_delimiter or '-' }} {% endif -%} | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
aron
via email
Author
Contributor
|
||
{{ g.site_title }} | ||
{%- endblock -%} | ||
</title> | ||
|
||
{# | ||
The html5shim allows you to modify/override the html5 shim. This is useful | ||
|
we should not really access config in templates only g. as we can override that - I think I will cause all jinja templates to die if they even think about accessing config and set through the app_globals - i'll fix things like this so don't worry
Also this is ltr language specific