theme/templates/article.html

Thu, 15 Feb 2018 18:28:03 +0100

author
David Douard <david.douard@logilab.fr>
date
Thu, 15 Feb 2018 18:28:03 +0100
changeset 80
1aa7cc25583e
parent 42
3c30fc0f8ce0
permissions
-rw-r--r--

[eip545b] add schematic for A201

{% 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}}{% if article.locale_modified and article.locale_modified != article.locale_date %} <span>(last updated on {{ article.locale_modified }})</span> {% endif %}</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