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 | |
parent | 31715af3efe66654c5c372adac0d39676bb4e5ac (diff) | |
download | w3blog-b0d505df13ae0c315d21f440c200c029a2bb07db.tar.gz w3blog-b0d505df13ae0c315d21f440c200c029a2bb07db.zip |
Can add personalized title (h2) to blog homepage
-rwxr-xr-x | setup.py | 2 | ||||
-rwxr-xr-x | weblog/templates/weblog/index.html | 6 |
2 files changed, 6 insertions, 2 deletions
@@ -10,7 +10,7 @@ os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='w3blog', - version='0.4.0', + version='0.4-testing.11', packages=find_packages(), include_package_data=True, license='BSD License', 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 %}
|