diff options
author | Yaroslav de la Peña <contact@yaroslavps.com> | 2018-07-19 04:45:49 +0300 |
---|---|---|
committer | Yaroslav de la Peña <contact@yaroslavps.com> | 2018-07-19 04:45:49 +0300 |
commit | b0d505df13ae0c315d21f440c200c029a2bb07db (patch) | |
tree | 4c05e932e153699260305e95bde0c2b3498b2eba /weblog/templates | |
parent | 31715af3efe66654c5c372adac0d39676bb4e5ac (diff) | |
download | w3blog-b0d505df13ae0c315d21f440c200c029a2bb07db.tar.gz w3blog-b0d505df13ae0c315d21f440c200c029a2bb07db.zip |
Can add personalized title (h2) to blog homepage
Diffstat (limited to 'weblog/templates')
-rwxr-xr-x | weblog/templates/weblog/index.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/weblog/templates/weblog/index.html b/weblog/templates/weblog/index.html index 7231cf7..a73844f 100755 --- a/weblog/templates/weblog/index.html +++ b/weblog/templates/weblog/index.html @@ -25,8 +25,12 @@ <h1>{% blocktrans with category_name=category.name context 'Posts from archive (year/month,year)' %}Posts from {{ year }}{% endblocktrans %}</h1>
{% endif %}
{% else %}
+{% if home_title %}
+<h2>{{ home_title }}</h2>
+{% else %}
<h1>{{ blog_title }} - {% trans "Home" context "Home page" %}</h1>
{% endif %}
+{% endif %}
{% if posts or pinned_posts %}
{% if pinned_posts %}
{% for post in pinned_posts %}
@@ -97,6 +101,6 @@ {% endif %}
{% endif %}
{% else %}
- <div class="text-center"><h2>{% trans 'Nothing has been posted yet.' %}</h2></div>
+ <div class="text-center"><h3>{% trans 'Nothing has been posted yet.' %}</h3></div>
{% endif %}
{% endblock %}
|