aboutsummaryrefslogtreecommitdiff
path: root/templates/weblog.html
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-09-30 00:16:12 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-09-30 00:16:12 +0300
commita835d3328deea93b05803d95d34e0c66618dc9c1 (patch)
tree03b332dff1a502de8aaa629a878fcc7d3550ac2d /templates/weblog.html
parent1581c10376dc3df7206da1feebc1e237e137d1be (diff)
downloadyaroslavps.com-a835d3328deea93b05803d95d34e0c66618dc9c1.tar.gz
yaroslavps.com-a835d3328deea93b05803d95d34e0c66618dc9c1.zip
Template and CSS improvements
* Improvements to weblog.html and base.html to not show on the indeces pages without dates, i.e. making them hidden drafts. * media print rule to be able to comfortably print articles.
Diffstat (limited to 'templates/weblog.html')
-rw-r--r--templates/weblog.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/weblog.html b/templates/weblog.html
index 6638faf..855c0ed 100644
--- a/templates/weblog.html
+++ b/templates/weblog.html
@@ -48,15 +48,19 @@
{% block content %}
<div class="posts-list">
{% for post in paginator.pages %}
+ {% if post.date %}
<div class="post-container partial">
<h2>
<a href="{{ post.permalink }}">{{ post.title }}</a>
+ {% if post.date %}
<span class="publish-date">{{ post.date | date }}</span>
+ {% endif %}
</h2>
{% if post.summary %}
{{ post.summary | safe }}
{% endif %}
</div>
+ {% endif %}
{% endfor %}
</div>
{% if paginator %}