From b0d505df13ae0c315d21f440c200c029a2bb07db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a?= Date: Thu, 19 Jul 2018 04:45:49 +0300 Subject: Can add personalized title (h2) to blog homepage --- setup.py | 2 +- weblog/templates/weblog/index.html | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index b6311d7..8aafbe5 100755 --- a/setup.py +++ b/setup.py @@ -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,7 +25,11 @@

{% blocktrans with category_name=category.name context 'Posts from archive (year/month,year)' %}Posts from {{ year }}{% endblocktrans %}

{% endif %} {% else %} +{% if home_title %} +

{{ home_title }}

+{% else %}

{{ blog_title }} - {% trans "Home" context "Home page" %}

+{% endif %} {% endif %} {% if posts or pinned_posts %} {% if pinned_posts %} @@ -97,6 +101,6 @@ {% endif %} {% endif %} {% else %} -

{% trans 'Nothing has been posted yet.' %}

+

{% trans 'Nothing has been posted yet.' %}

{% endif %} {% endblock %} -- cgit v1.2.3