aboutsummaryrefslogtreecommitdiffstats
path: root/cebong/templates/page.html
blob: 54fe19e42b663f5d051036f25802442faff307eb (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
{% extends "base.html" %}
{% block title %}{{ page.title }}{% endblock %}
{% block robots %}
{% if page.robots %}{{ page.robots }}{% else %}index,follow{% endif %}
{% endblock %}
{% block meta_tags_in_head %}
{% if page.tags and page.category %}
        <meta name="keywords" content="{{ [page.tags|join(', '), page.category]|join(', ') }}" />
{% endif %}
{% if page.category %}
        <meta name="category" content="{{ page.category|striptags }}" />
{% endif %}
{% if page.description %}
        <meta name="description" content="{{ page.description|striptags  }}" />
{% elif page.summary %}
        <meta name="description" content="{{ page.summary|striptags  }}" />
{% endif %}
{% if page.author %}
        <meta name="author" content="{{ page.author }}" />
        <meta name="copyright" content="{{ page.author }}" />
{% endif %}
{% endblock meta_tags_in_head %}

{% block content %}
<section id="content" class="body">
    <h1 class="entry-title">{{ page.title }}</h1>
    {% if PDF_PROCESSOR %}<a href="{{ SITEURL }}/pdf/{{ page.slug }}.pdf">get
    the pdf</a>{% endif %}
    {{ page.content }}
</section>
{% endblock %}