sito-hackit-16/themes/hm15/templates/page.html

48 lines
1.5 KiB
HTML
Raw Permalink Normal View History

2015-03-13 12:58:31 +01:00
{% extends "base.html" %}
2016-01-25 18:53:49 +01:00
{% block title %}{{ page.title }} - {{ SITENAME }}{% endblock %}
{% block html_lang %}{{ page.lang }}{% endblock %}
{% block meta %}
{% if page.author %}
<meta name="author" content="{{ page.author }}" />
{% else %}
<meta name="author" content="{{ AUTHOR }}" />
{% endif %}
{% if page.summary %}
<meta name="description" content="{{ page.summary|striptags|escape }}" />
{% endif %}
{% endblock %}
{% block canonical_rel %}
<link rel="canonical" href="{{ SITEURL }}/{{ page.url }}">
{% endblock %}
{% block breadcrumbs %}
{% if DISPLAY_BREADCRUMBS %}
<ol class="breadcrumb">
<li><a href="{{ SITEURL }}" title="{{ SITENAME }}"><i class="fa fa-home fa-lg"></i></a></li>
{% if page.url %}
<li class="active">{{ page.title }}</li>
{% endif %}
</ol>
{% endif %}
{% endblock %}
2015-03-13 12:58:31 +01:00
{% block content %}
2016-01-25 18:53:49 +01:00
<article id="content" class="body slug-{{page.slug}}" lang="{{page.lang}}">
<h1 class="entry-title">{{ page.title }}</h1>
{% import 'includes/translations.html' as translations with context %}
{{ translations.translations_for(page) }}
{% if PDF_PROCESSOR %}
<a href="{{ SITEURL }}/pdf/{{ page.slug }}.pdf">
get the pdf
</a>
{% endif %}
<div class="entry-content">
{{ page.content }}
{% if page.comments == 'enabled' %}
{% include 'includes/comments.html' %}
{% endif %}
</div>
</article>
2015-03-13 12:58:31 +01:00
{% endblock %}