From adb87583cc63ca228a6492dc641f3e1389edc629 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a?= Date: Thu, 19 Jul 2018 22:23:15 +0300 Subject: html classes for better customization options --- setup.py | 2 +- weblog/templates/weblog/index.html | 16 ++++++++-------- weblog/templates/weblog/post.html | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/setup.py b/setup.py index a472f5d..787a31e 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-testing.13', + version='0.4-testing.14', 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 a73844f..331989b 100755 --- a/weblog/templates/weblog/index.html +++ b/weblog/templates/weblog/index.html @@ -36,14 +36,14 @@ {% for post in pinned_posts %}

{% trans 'Important post' %}

-

{{ post.title }}

-

{% blocktrans with publish_date=post.publish_date %}Published on {{ publish_date }}{% endblocktrans %}{% if post.author %}{% blocktrans with author=post.author context 'Written by (Author)' %}, by {{ author }}{% endblocktrans %}{% endif %}

+

{{ post.title }}

+

{% blocktrans with publish_date=post.publish_date %}Published on {{ publish_date }}{% endblocktrans %}{% if post.author %}{% blocktrans with author=post.author context 'Written by (Author)' %}, by {% endblocktrans %}{% endif %}


{% if post.preview_image %}{% endif %} {{ post.preview_text|safe }}
- {% endfor %} @@ -51,14 +51,14 @@ {% if posts %} {% for post in posts %}
-

{{ post.title }}

-

{% blocktrans with publish_date=post.publish_date %}Published on {{ publish_date }}{% endblocktrans %}{% if post.author %}{% blocktrans with author=post.author context 'Written by (Author)' %}, by {{ author }}{% endblocktrans %}{% endif %}

+

{{ post.title }}

+

{% blocktrans with publish_date=post.publish_date %}Published on {{ publish_date }}{% endblocktrans %}{% if post.author %}{% blocktrans with author=post.author context 'Written by (Author)' %}, by {% endblocktrans %}{% endif %}


{% if post.preview_image %}{% endif %} {{ post.preview_text|safe }}
- {% endfor %} diff --git a/weblog/templates/weblog/post.html b/weblog/templates/weblog/post.html index 0459744..623a7d1 100755 --- a/weblog/templates/weblog/post.html +++ b/weblog/templates/weblog/post.html @@ -3,8 +3,8 @@ {% block title_block %}{% if post_translation %}{{ post_translation.title }}{% else %}{{ post.title }}{% endif %}{% endblock %} {% block blog_content_block %}
-

{% if post_translation %}{{ post_translation.title }}{% else %}{{ post.title }}{% endif %}

-

{% blocktrans with publish_date=post.publish_date %}Published on {{ publish_date }}{% endblocktrans %}{% if post_author %}{% blocktrans with author=post_author context 'Written by (Author)' %}, by {{ author }}{% endblocktrans %}{% endif %}

+

{% if post_translation %}{{ post_translation.title }}{% else %}{{ post.title }}{% endif %}

+

{% blocktrans with publish_date=post.publish_date %}Published on {{ publish_date }}{% endblocktrans %}{% if post.author %}{% blocktrans with author=post.author context 'Written by (Author)' %}, by {% endblocktrans %}{% endif %}

{% if post_languages %}
-- cgit v1.2.3