summaryrefslogtreecommitdiff
path: root/templates/article.html
blob: 630323bc7f2d4c35af97e38f09243730b85e6653 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{% extends "base.html" %}
{% block menu %}
      | <a href="{{ SITEURL }}">Home</a> |
      {% for p in PAGES %}
      | <a href="{{ SITEURL}}/{{p.url}}">{{p.title}}</a> |
      {% endfor %}
{% endblock %}
{% block article %}
<h1><a href="{{ SITEURL }}/{{ article.url}}">{{
    article.title |striptags }}</a></h1>
{% endblock %}
{% block head %}
  {{ super() }}
  {% for keyword in article.keywords %}
    <meta name="keywords" content="{{keyword}}" />
  {% endfor %}

  {% for description in article.description %}
    <meta name="description" content="{{description}}" />
  {% endfor %}

  {% for tag in article.tags %}
    <meta name="tags" content="{{tag}}" />
  {% endfor %}
{% endblock %}

{% block content %}
<section id="content" class="body">
  <footer class="post-info">
     <p> Posted on {{ article.date|strftime('%b %d, %Y')}}
      {% if article.authors %} By {{ article.author }}
       {% endif %}
       {% if article.category %} under {{ article.category }}
       {% endif %}
     </p>
    </abbr>
    {% if article.modified %}
    <abbr class="modified" title="{{ article.modified.isoformat() }}">
      Modified on {{ article.locale_modified }}
    </abbr>
    {% endif %}
  </footer><!-- /.post-info -->
  <div class="entry-content">
    {{ article.content }}
  </div><!-- /.entry-content -->
  <div id="footer">
    <p>
      <italic>Tagged as:
      {% for t in article.tags|sort %}
      {{t}}, 
	{% endfor %}
      </italic>
    </p>
</section>
{% endblock %}