manbytesgnu_site

Source files for manbytesgnu.org
git clone git://holbrook.no/manbytesgnu_site.git
Info | Log | Files | Refs

article.html (2268B)


      1 {% extends "base.html" %}
      2 
      3 {% block html_lang %}{{ article.lang }}{% endblock %}
      4 
      5 {% block title %}{{ SITENAME }} - {{ article.title|striptags  }}{% endblock %}
      6 
      7 {% block head %}
      8 	{{ super() }}
      9   {% if article.description %}
     10     <meta name="description" content="{{article.description}}" />
     11   {% endif %}
     12 {% endblock %}
     13 
     14 {% block content %}
     15   <header>
     16     <h1 class="entry-title top-body-title">
     17       <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
     18 		title="Permalink to {{ article.title|striptags }}">{% if article.series %}{{ article.series }}: {% endif %}{{ article.title }}</a></h1>
     19 
     20     
     21    <div class="category meta">
     22         Posted 
     23 <time class="published" datetime="{{ article.date.isoformat() }}">
     24       {{ article.locale_date }} 
     25     </time>
     26     {% if article.modified %}{% if article.modified|string != article.date|string %} (last modified {{ article.locale_modified }}) {% endif %}{% endif %}
     27 in <a class="category" href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category|lower() }}</a>
     28 {% for tag in article.tags %}
     29              <a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>
     30         {% endfor %}
     31     </div>
     32 
     33     <div class="neighbors meta">
     34 	    <ul>
     35 	{% if article.prev_article %}
     36 	<li>
     37 	    Previous: <a href="{{ SITEURL }}/{{ article.prev_article.url}}">
     38 			{{ article.prev_article.title }}
     39 		</a>
     40 	</li>
     41     {% endif %}
     42 	{% if article.next_article %}
     43 	{% if article.prev_article %}
     44 	|
     45 	{% endif %}	
     46 	<li>
     47 	    Next: <a href="{{ SITEURL }}/{{ article.next_article.url}}">
     48 	    {{ article.next_article.title }}
     49 	</a>
     50 	</li>
     51     {% endif %}
     52 	</ul>
     53 	</div>
     54 	  {% if article.series %}
     55 	  <div class="entry-series meta">
     56 Part {{ article.seriespart }} from the series "{{ article.series }}"
     57 	<ol class="entry-series-parts"> 
     58 	{% for a in articles|sort(attribute="slug") %}
     59 	{% if article.seriesprefix in a.slug and article.slug != a.slug %}
     60 		<li>| <a href="{{ a.url }}" title="{{ a.title }} ">Part {{ a.seriespart }}</a></li>
     61 	{% endif %}
     62 	{% endfor %}
     63 	</ol>
     64 	  </div>
     65     {% endif %}
     66     <div class="meta">
     67 <hr/>
     68     </div>
     69 </header>
     70 
     71 <section id="content" class="body">
     72   <div class="entry-content">
     73     {{ article.content }}
     74   </div><!-- /.entry-content -->
     75   <footer class="meta">
     76   </footer>
     77 
     78 </section>
     79 {% endblock %}