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 --- weblog/templates/weblog/index.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'weblog') 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