Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix #2212 -- display dates in lists properly
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jan 7, 2016
1 parent 9b830f9 commit aa42958
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions CHANGES.txt
Expand Up @@ -14,6 +14,8 @@ Features
Bugfixes
--------

* Display tags and archives in a unified format, with the date on the
left, instead of a misplaced dash in tags (Issue #2212)
* Decide is_mathjax based on current language tags (Issue #2205)
* Don't duplicate images in flowr when resizing page (Issue #2202)

Expand Down
2 changes: 1 addition & 1 deletion nikola/data/themes/base-jinja/templates/author.tmpl
Expand Up @@ -35,7 +35,7 @@
{% if posts %}
<ul class="postlist">
{% for post in posts %}
<li><a href="{{ post.permalink() }}" class="listtitle">{{ post.title()|e }}</a><time class="listdate" datetime="{{ post.formatted_date('webiso') }}" title="{{ post.formatted_date(date_format)|e }}">{{ post.formatted_date(date_format)|e }}</time></li>
<li><time class="listdate" datetime="{{ post.formatted_date('webiso') }}" title="{{ post.formatted_date(date_format)|e }}">{{ post.formatted_date(date_format)|e }}</time> <a href="{{ post.permalink() }}" class="listtitle">{{ post.title()|e }}</a></li>
{% endfor %}
</ul>
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion nikola/data/themes/base-jinja/templates/list_post.tmpl
Expand Up @@ -9,7 +9,7 @@
{% if posts %}
<ul class="postlist">
{% for post in posts %}
<li><a href="{{ post.permalink() }}" class="listtitle">{{ post.title()|e }}</a> <time class="listdate" datetime="{{ post.formatted_date('webiso') }}" title="{{ post.formatted_date(date_format)|e }}">{{ post.formatted_date(date_format)|e }}</time></li>
<li><time class="listdate" datetime="{{ post.formatted_date('webiso') }}" title="{{ post.formatted_date(date_format)|e }}">{{ post.formatted_date(date_format)|e }}</time> <a href="{{ post.permalink() }}" class="listtitle">{{ post.title()|e }}</a></li>
{% endfor %}
</ul>
{% else %}
Expand Down
2 changes: 1 addition & 1 deletion nikola/data/themes/base/assets/css/theme.css
Expand Up @@ -120,7 +120,7 @@ body {
}
.metadata p:before,
.postpromonav .tags li:before,
.postlist .listdate:before {
.postlist .listdate:after {
content: " — ";
}
.postlist li {
Expand Down
2 changes: 1 addition & 1 deletion nikola/data/themes/base/templates/author.tmpl
Expand Up @@ -35,7 +35,7 @@
%if posts:
<ul class="postlist">
% for post in posts:
<li><a href="${post.permalink()}" class="listtitle">${post.title()|h}</a><time class="listdate" datetime="${post.formatted_date('webiso')}" title="${post.formatted_date(date_format)|h}">${post.formatted_date(date_format)|h}</time></li>
<li><time class="listdate" datetime="${post.formatted_date('webiso')}" title="${post.formatted_date(date_format)|h}">${post.formatted_date(date_format)|h}</time> <a href="${post.permalink()}" class="listtitle">${post.title()|h}</a></li>
% endfor
</ul>
%endif
Expand Down
2 changes: 1 addition & 1 deletion nikola/data/themes/base/templates/list_post.tmpl
Expand Up @@ -9,7 +9,7 @@
%if posts:
<ul class="postlist">
% for post in posts:
<li><a href="${post.permalink()}" class="listtitle">${post.title()|h}</a> <time class="listdate" datetime="${post.formatted_date('webiso')}" title="${post.formatted_date(date_format)|h}">${post.formatted_date(date_format)|h}</time></li>
<li><time class="listdate" datetime="${post.formatted_date('webiso')}" title="${post.formatted_date(date_format)|h}">${post.formatted_date(date_format)|h}</time> <a href="${post.permalink()}" class="listtitle">${post.title()|h}</a></li>
% endfor
</ul>
%else:
Expand Down
2 changes: 1 addition & 1 deletion nikola/data/themes/bootstrap3-jinja/assets/css/theme.css
Expand Up @@ -118,7 +118,7 @@ article.post-micro {
}

.metadata p:before,
.postlist .listdate:before {
.postlist .listdate:after {
content: " — ";
}

Expand Down
2 changes: 1 addition & 1 deletion nikola/data/themes/bootstrap3/assets/css/theme.css
Expand Up @@ -118,7 +118,7 @@ article.post-micro {
}

.metadata p:before,
.postlist .listdate:before {
.postlist .listdate:after {
content: " — ";
}

Expand Down

0 comments on commit aa42958

Please sign in to comment.