theme/templates/article.html

changeset 36
9507107a1133
child 42
3c30fc0f8ce0
equal deleted inserted replaced
35:bb011397a99c 36:9507107a1133
1 {% extends "base.html" %}
2 {% block title %}{{ article.title }} - {{SITENAME}}{% endblock title %}
3 {% block pageheader %}
4 <div class="hp-header-inner">
5 <div class="page-header">
6 <div class="content-header">
7 <div id="title-block">
8 <h1> <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
9 title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h1>
10 </div>
11 </div>
12 </div>
13 </div>
14 {% endblock %}
15 {% block content %}
16 <div class="content-article">
17 <header class="header-article">
18 <div class="read-more">Posted on {{ article.locale_date}}</div>
19
20 </header>
21 <section class='article'>
22 <div class="entry-content">
23 {{ article.content }}
24 </div>
25 </section>
26 <footer class="footer-article">
27 <div class="tags-and-categories">Filed under <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
28 | Tagged: {% if article.tags %}{% for tag in article.tags %}<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }} </a>{% endfor %}{% endif %}
29
30 | <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
31 title="Permalink to {{ article.title|striptags }}">Permalink</a>
32 </div>
33 <!-- metaldata
34 {% for m in article.Metaldata %}
35 Rock on! {{ m }}
36 {% endfor %}
37 -->
38 </footer>
39 <!-- disqus {{ DISQUS_SITENAME }} -->
40 {% include 'article_discus.html' %}
41 </div>
42 {% endblock %}
43 {% block sidecontent %}
44 {% if article.series %}
45 <h3>{{article.series.name}}</h3>
46 <ol class="parts">
47 {% for part_article in article.series.all %}
48 <li {% if part_article == article %}class="active"{% endif %}>
49 <a href='{{ SITEURL }}/{{ part_article.url }}'>{{ part_article.title }}</a>
50 </li>
51 {% endfor %}
52 </ol>
53 {% endif %}
54 {% if article.related_posts %}
55 <h3>See also</h3>
56 <ol class="parts">
57 {% for related_article in article.related_posts %}
58 <li>
59 <a href='{{ SITEURL }}/{{ related_article.url }}'>{{ related_article.title }}</a>
60 </li>
61 {% endfor %}
62 </ol>
63 {% else %}
64 <h3> No related posts </h3>
65 {% endif %}
66
67 {% endblock %}

mercurial