<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>{{site.title}}</title>
<link rel="stylesheet" href="{{site.root}}static/style.css" />
<link rel="stylesheet" href="{{site.root}}static/syntax.css" />
{% if site.latex %}{% include "mathjax.html" %}{% endif %}
</head>
<body>
{% include "header.html" %}
{% include "navbar.html" %}
<div id="main">
    <div class="article">
        <div class="ptitle">{{article.title}}</div>
        <div class="pmain">{{article.content}}</div>
        <div class="pfoot">
            <span class="pdate">Date: {% if article.date %}{{article.date | date('Y-m-d H:i')}}{% endif %}</span>
            {% if article.categories -%}
            <span class="pcategories">Categories: 
                {% for category in article.categories -%}
                <a href="{{site.root}}{{site.category_dir}}/{{category | lower}}/">{{category}}</a>
                {%- endfor %}
            </span>
            {%- endif %}
            {% if article.tags -%}
            <span class="ptags">Tags: 
                {% for tag in article.tags -%}
                <a href="{{site.root}}{{site.tag_dir}}/{{tag | lower}}/">{{tag}}</a>
                {%- endfor %}
            </span>
            {%- endif %}
        </div>
    </div>
    <div class="pagination">
      {% if article.next %}
        <span class="newer"><a href="{{article.next.url}}">&lt;&lt; {{article.next.title}}</a></span>
      {% endif %}
      {% if article.previous %}
        <span class="older"><a href="{{article.previous.url}}">{{article.previous.title}} &gt;&gt;</a></span>
      {% endif %}
    </div>
</div>
{% include "footer.html" %}
</body>
</html>
