Skip to content

Commit

Permalink
theme: different styling for updated articles in the footer.
Browse files Browse the repository at this point in the history
  • Loading branch information
mosra committed Jan 16, 2018
1 parent a5c8ef9 commit a5a1755
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pelican-theme/templates/article_footer.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<p>Posted{% if article.authors %} by {% for author in article.authors %}<a href="{{ author.url|format_siteurl|e }}">{{ author|e }}</a>{% endfor %}{% endif %} on <time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time> in <a href="{{ article.category.url|format_siteurl|e }}">{{ article.category|e }}</a>{% if article.modified %}; <span class="m-text m-success">updated <time datetime="{{ article.modified.isoformat() }}">{{ article.locale_modified }}</time></span>{% endif %}.{% if article.tags %} Tags: {% for tag in article.tags %}<a href="{{ tag.url|format_siteurl|e }}">{{ tag|e }}</a>{% if not loop.last %}, {% endif %}{% endfor %}.{% endif %}</p>
<p>Posted{% if article.authors %} by {% for author in article.authors %}<a href="{{ author.url|format_siteurl|e }}">{{ author|e }}</a>{% endfor %}{% endif %} on <time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time> in <a href="{{ article.category.url|format_siteurl|e }}">{{ article.category|e }}</a>.{% if article.modified %} <span class="m-label m-success">updated <time datetime="{{ article.modified.isoformat() }}">{{ article.locale_modified }}</time></span>{% endif %}{% if article.tags %} Tags: {% for tag in article.tags %}<a href="{{ tag.url|format_siteurl|e }}">{{ tag|e }}</a>{% if not loop.last %}, {% endif %}{% endfor %}.{% endif %}</p>
2 changes: 1 addition & 1 deletion pelican-theme/test/blog_modified_date/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ <h1><a href="article.html" rel="bookmark" title="Permalink to An article">
</a></h1>
</header>
<footer>
<p>Posted on <time datetime="2017-12-08T00:00:00+00:00">Dec 08, 2017</time> in <a href="category-misc.html">misc</a>; <span class="m-text m-success">updated <time datetime="2017-12-10T00:00:00+00:00">Dec 10, 2017</time></span>.</p>
<p>Posted on <time datetime="2017-12-08T00:00:00+00:00">Dec 08, 2017</time> in <a href="category-misc.html">misc</a>. <span class="m-label m-success">updated <time datetime="2017-12-10T00:00:00+00:00">Dec 10, 2017</time></span></p>
</footer>
<div class="m-clearfix-l"></div>
</article>
Expand Down

0 comments on commit a5a1755

Please sign in to comment.