theme/templates/article.html

changeset 36
9507107a1133
child 42
3c30fc0f8ce0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/theme/templates/article.html	Sat Mar 12 17:37:27 2016 +0100
@@ -0,0 +1,67 @@
+{% extends "base.html" %}
+{% block title %}{{ article.title }} - {{SITENAME}}{% endblock title %}
+{% block pageheader %}
+<div class="hp-header-inner">
+    <div class="page-header">
+        <div class="content-header">
+            <div id="title-block">
+            <h1>  <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
+                    title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h1>
+            </div>
+        </div>
+    </div>
+</div>
+{% endblock %}
+{% block content %}
+<div class="content-article">
+    <header class="header-article">
+        <div class="read-more">Posted on {{ article.locale_date}}</div>
+ 
+   </header>
+    <section class='article'>
+        <div class="entry-content">
+            {{ article.content }}
+        </div>
+    </section>
+    <footer class="footer-article">
+        <div class="tags-and-categories">Filed under <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
+        | Tagged: {% if article.tags %}{% for tag in article.tags %}<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }} </a>{% endfor %}{% endif %}
+
+        | <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
+         title="Permalink to {{ article.title|striptags }}">Permalink</a>            
+        </div>
+        <!-- metaldata 
+        {% for m in article.Metaldata %}
+        Rock on! {{ m }}
+        {% endfor %}
+        -->
+    </footer>
+    <!-- disqus {{ DISQUS_SITENAME }} -->
+    {% include 'article_discus.html' %}
+</div>
+{% endblock %}
+{% block sidecontent %}
+{% if article.series %}
+        <h3>{{article.series.name}}</h3>
+        <ol class="parts">
+            {% for part_article in article.series.all %}
+                <li {% if part_article == article %}class="active"{% endif %}>
+                    <a href='{{ SITEURL }}/{{ part_article.url }}'>{{ part_article.title }}</a>
+                </li>
+            {% endfor %}
+        </ol>
+	{% endif %}
+	{% if article.related_posts %}
+        <h3>See also</h3>
+        <ol class="parts">
+            {% for related_article in article.related_posts %}
+                <li>
+                    <a href='{{ SITEURL }}/{{ related_article.url }}'>{{ related_article.title }}</a>
+                </li>
+            {% endfor %}
+        </ol>
+	{% else %}
+	<h3> No related posts </h3>
+	{% endif %}
+	
+{% endblock %}

mercurial