Skip to content

Commit

Permalink
Add parentheses around (updated)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Aug 10, 2018
1 parent a39aec3 commit f48fec9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 14 deletions.
9 changes: 4 additions & 5 deletions CHANGES.txt
Expand Up @@ -8,13 +8,12 @@ Features

* Don’t generate gallery index if the destination directory is
site root and it would conflict with blog index (Issue #3133)
* All built-in themes now support updated timestamp fields in
* All built-in themes now support ``updated`` timestamp fields in
posts. The update time, if it is specified and different from
the posting time will be displayed as
"{postDate} ${messages("updated") {updateDate}". If no update
the posting time, will be displayed as
"{postDate} (${messages("updated")} {updateDate})". If no update
time is specified, the posting time will be displayed alone.
* All built-in themes now support the ``DATE_FANCINESS``
parameter in ``conf.py``.
* All built-in themes now support the ``DATE_FANCINESS`` option.

Bugfixes
--------
Expand Down
5 changes: 2 additions & 3 deletions nikola/data/themes/base/templates/index.tmpl
Expand Up @@ -41,9 +41,8 @@
<a href="${post.permalink()}" rel="bookmark">
<time class="published dt-published" datetime="${post.formatted_date('webiso')}" itemprop="datePublished" title="${post.formatted_date(date_format)|h}">${post.formatted_date(date_format)|h}</time>
% if post.updated and post.updated != post.date:
<span class="updated">${messages("updated")}
<time class="dt-updated" datetime="${post.formatted_updated('webiso')}" itemprop="dateUpdated" title="${post.formatted_updated(date_format)|h}">${post.formatted_updated(date_format)|h}</time>
</span>
<span class="updated">(${messages("updated")}
<time class="dt-updated" datetime="${post.formatted_updated('webiso')}" itemprop="dateUpdated" title="${post.formatted_updated(date_format)|h}">${post.formatted_updated(date_format)|h}</time>)</span>
% endif
</a>
</p>
Expand Down
5 changes: 2 additions & 3 deletions nikola/data/themes/base/templates/post_header.tmpl
Expand Up @@ -42,9 +42,8 @@
<a href="${post.permalink()}" rel="bookmark">
<time class="published dt-published" datetime="${post.formatted_date('webiso')}" itemprop="datePublished" title="${post.formatted_date(date_format)|h}">${post.formatted_date(date_format)|h}</time>
% if post.updated and post.updated != post.date:
<span class="updated">${messages("updated")}
<time class="updated dt-updated" datetime="${post.formatted_updated('webiso')}" itemprop="dateUpdated" title="${post.formatted_updated(date_format)|h}">${post.formatted_updated(date_format)|h}</time>
</span>
<span class="updated">(${messages("updated")}
<time class="updated dt-updated" datetime="${post.formatted_updated('webiso')}" itemprop="dateUpdated" title="${post.formatted_updated(date_format)|h}">${post.formatted_updated(date_format)|h}</time>)</span>
% endif
</a>
</p>
Expand Down
5 changes: 2 additions & 3 deletions nikola/data/themes/bootblog4/templates/index.tmpl
Expand Up @@ -41,9 +41,8 @@
<a href="${post.permalink()}" rel="bookmark">
<time class="published dt-published" datetime="${post.formatted_date('webiso')}" itemprop="datePublished" title="${post.formatted_date(date_format)|h}">${post.formatted_date(date_format)|h}</time>
% if post.updated and post.updated != post.date:
<span class="updated">${messages("updated")}
<time class="dt-updated" datetime="${post.formatted_updated('webiso')}" itemprop="dateUpdated" title="${post.formatted_updated(date_format)|h}">${post.formatted_updated(date_format)|h}</time>
</span>
<span class="updated">(${messages("updated")}
<time class="dt-updated" datetime="${post.formatted_updated('webiso')}" itemprop="dateUpdated" title="${post.formatted_updated(date_format)|h}">${post.formatted_updated(date_format)|h}</time>)</span>
% endif
</a>
</p>
Expand Down

0 comments on commit f48fec9

Please sign in to comment.