aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav de la Peña <contact@yaroslavps.com>2018-07-19 22:23:15 +0300
committerYaroslav de la Peña <contact@yaroslavps.com>2018-07-19 22:23:15 +0300
commitadb87583cc63ca228a6492dc641f3e1389edc629 (patch)
tree232cc6e3d8bb961a89c9e8555094370a21307e24
parent0785634524a82373d07400cad9b5e96c77a8569b (diff)
downloadw3blog-adb87583cc63ca228a6492dc641f3e1389edc629.tar.gz
w3blog-adb87583cc63ca228a6492dc641f3e1389edc629.zip
html classes for better customization options
-rwxr-xr-xsetup.py2
-rwxr-xr-xweblog/templates/weblog/index.html16
-rwxr-xr-xweblog/templates/weblog/post.html4
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 %}
<div class="container-fluid blogpost">
<p><span class="fas fa-thumbtack"></span> <i>{% trans 'Important post' %}</i></p>
- <h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
- <p class="publish-info">{% 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 %}</p>
+ <h2 class="post-title"><a href="{{ post.url }}">{{ post.title }}</a></h2>
+ <p class="publish-info">{% blocktrans with publish_date=post.publish_date %}Published on <span class="post-publish-date">{{ publish_date }}</span>{% endblocktrans %}{% if post.author %}{% blocktrans with author=post.author context 'Written by (Author)' %}, by <span class="post-author">{{ author }}</span>{% endblocktrans %}{% endif %}</p>
<hr>
{% if post.preview_image %}<img class="img-responsive preview-img" src="{{ post.preview_image.url }}">{% endif %}
{{ post.preview_text|safe }}
<hr>
- <div class="text-right">
- <a href="{{ post.url }}">{% trans 'Read more...' %}</a>
+ <div class="text-right read-more-wrapper">
+ <a class="read-more" href="{{ post.url }}">{% trans 'Read more...' %}</a>
</div>
</div>
{% endfor %}
@@ -51,14 +51,14 @@
{% if posts %}
{% for post in posts %}
<div class="container-fluid blogpost">
- <h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
- <p class="publish-info">{% 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 %}</p>
+ <h2 class="post-title"><a href="{{ post.url }}">{{ post.title }}</a></h2>
+ <p class="publish-info">{% blocktrans with publish_date=post.publish_date %}Published on <span class="post-publish-date">{{ publish_date }}</span>{% endblocktrans %}{% if post.author %}{% blocktrans with author=post.author context 'Written by (Author)' %}, by <span class="post-author">{{ author }}</span>{% endblocktrans %}{% endif %}</p>
<hr>
{% if post.preview_image %}<img class="img-responsive preview-img" src="{{ post.preview_image.url }}">{% endif %}
{{ post.preview_text|safe }}
<hr>
- <div class="text-right">
- <a href="{{ post.url }}">{% trans 'Read more...' %}</a>
+ <div class="text-right read-more-wrapper">
+ <a class="read-more" href="{{ post.url }}">{% trans 'Read more...' %}</a>
</div>
</div>
{% 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 %}
<div class="container-fluid blogpost">
- <h2>{% if post_translation %}{{ post_translation.title }}{% else %}{{ post.title }}{% endif %}</h2>
- <p class="publish-info">{% 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 %}</p>
+ <h2 class="post-title">{% if post_translation %}{{ post_translation.title }}{% else %}{{ post.title }}{% endif %}</h2>
+ <p class="publish-info">{% blocktrans with publish_date=post.publish_date %}Published on <span class="post-publish-date">{{ publish_date }}</span>{% endblocktrans %}{% if post.author %}{% blocktrans with author=post.author context 'Written by (Author)' %}, by <span class="post-author">{{ author }}</span>{% endblocktrans %}{% endif %}</p>
{% if post_languages %}
<form>
<div class="form-group">