parent
d99c221b2b
commit
41104392fd
@ -0,0 +1,59 @@
|
||||
{% load i18n %}
|
||||
{% load blog_tags %}
|
||||
|
||||
|
||||
<footer class="entry-meta">
|
||||
{% trans 'posted in' %}
|
||||
<a href="{{ article.category.get_absolute_url }}" rel="category tag">{{ article.category.name }}</a>
|
||||
|
||||
|
||||
</a>
|
||||
{% if article.type == 'a' %}
|
||||
{% if article.tags.all %}
|
||||
|
||||
{% trans 'and tagged' %}
|
||||
{% for t in article.tags.all %}
|
||||
<a href="{{ t.get_absolute_url }}" rel="tag">{{ t.name }}</a>
|
||||
{% if t != article.tags.all.last %}
|
||||
,
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
.{% trans 'by ' %}
|
||||
<span class="by-author">
|
||||
<span class="author vcard">
|
||||
<a class="url fn n" href="{{ article.author.get_absolute_url }}"
|
||||
{% blocktranslate %}
|
||||
title="View all articles published by {{ article.author.username }}"
|
||||
{% endblocktranslate %}
|
||||
rel="author">
|
||||
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
|
||||
|
||||
<span itemprop="name" itemprop="publisher">
|
||||
|
||||
{{ article.author.username }}
|
||||
</span>
|
||||
</span>
|
||||
</a>
|
||||
|
||||
|
||||
</span>
|
||||
{% trans 'on' %}
|
||||
<a href="{{ article.get_absolute_url }}"
|
||||
title="{% datetimeformat article.pub_time %}"
|
||||
itemprop="datePublished" content="{% datetimeformat article.pub_time %}"
|
||||
rel="bookmark">
|
||||
|
||||
<time class="entry-date updated"
|
||||
datetime="{{ article.pub_time }}">
|
||||
{% datetimeformat article.pub_time %}</time>
|
||||
{% if user.is_superuser %}
|
||||
<a href="{{ article.get_admin_url }}">{% trans 'edit' %}</a>
|
||||
{% endif %}
|
||||
</span>
|
||||
</footer><!-- .entry-meta -->
|
||||
|
||||
|
||||
@ -0,0 +1,17 @@
|
||||
{% load i18n %}
|
||||
<nav id="nav-below" class="navigation" role="navigation">
|
||||
<h3 class="assistive-text">
|
||||
{% trans 'article navigation' %}
|
||||
</h3>
|
||||
{% if page_obj.has_next and next_url%}
|
||||
<div class="nav-previous"><a
|
||||
href="{{ next_url }}"><span
|
||||
class="meta-nav">←</span> {% trans 'earlier articles' %}</a></div>
|
||||
{% endif %}
|
||||
{% if page_obj.has_previous and previous_url %}
|
||||
<div class="nav-next"><a href="{{ previous_url }}">{% trans 'newer articles' %}
|
||||
<span
|
||||
class="meta-nav">→</span></a>
|
||||
</div>
|
||||
{% endif %}
|
||||
</nav><!-- .navigation -->
|
||||
@ -0,0 +1,19 @@
|
||||
{% load i18n %}
|
||||
{% if article_tags_list %}
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
{% trans 'tags' %}
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
|
||||
{% for url,count,tag,color in article_tags_list %}
|
||||
<a class="label label-{{ color }}" style="display: inline-block;" href="{{ url }}"
|
||||
title="{{ tag.name }}">
|
||||
{{ tag.name }}
|
||||
<span class="badge">{{ count }}</span>
|
||||
</a>
|
||||
{% endfor %}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
@ -0,0 +1,19 @@
|
||||
<ul itemscope itemtype="https://schema.org/BreadcrumbList" class="breadcrumb">
|
||||
|
||||
{% for name,url in names %}
|
||||
<li itemprop="itemListElement" itemscope
|
||||
itemtype="https://schema.org/ListItem">
|
||||
<a href="{{ url }}" itemprop="item" >
|
||||
<span itemprop="name">{{ name }}</span></a>
|
||||
<meta itemprop="position" content="{{ forloop.counter }}"/>
|
||||
|
||||
</li>
|
||||
{% endfor %}
|
||||
<li class="active" itemprop="itemListElement" itemscope
|
||||
itemtype="https://schema.org/ListItem">
|
||||
<span itemprop="name">{{ title }}</span>
|
||||
<meta itemprop="position" content="{{ count }}"/>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
Loading…
Reference in new issue