summaryrefslogtreecommitdiff
path: root/libretube-theme/templates/page.html
blob: 47db02706b3d18f4b3a77eaf9d1a6476a0c77334 (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
{% extends "base.html" %}

{% block html_lang %}{{ page.lang }}{% endblock%}

{% block head %}
    {% block title %}
        <title>{{ page.title }} - {{SITENAME}}</title>
    {% endblock %}
    {% import 'translations.html' as translations with context %}
    {% if translations.entry_hreflang(page) %}
        {{ translations.entry_hreflang(page) }}
    {% endif %}
    {{ super() }}
    {% if page.styles %}
        {% for style in page.styles %}
            {{ style }}
        {% endfor %}
    {% endif %}
    {% block seo %}
        <!-- Meta Page -->
        <meta name="description" content="{{ SITENAME }} &ndash; {{ SITESUBTITLE }}"/>
        <meta name="author" content="{{ page.author }}"/>
        <!-- OpenGraph -->
        <meta property="og:type" content="article"/>
        <meta property="og:title" content="{{ page.title }}"/>
        <meta property="og:description" content="{{ SITESUBTITLE }}"/>
        <meta property="og:site_name" content="{{ SITENAME }}"/>
        <meta property="og:url" content="{{ SITEURL }}/{{ page.url }}"/>
        <!-- Twitter -->
        <meta name="twitter:card" content="summary"/>
        <meta name="twitter:title" content="{{ page.title }}"/>
        <meta name="twitter:description" content="{{ SITESUBTITLE }}"/>
        <meta name="twitter:url" content="{{ SITEURL }}/{{ page.url }}"/>
    {% endblock %}
{% endblock head %}

{%- block content -%}
    <!-- Main -->
    <div class="row mt-10">
        <div class="col-md-9 mx-auto text-justify">
            <!-- dinamic page content  -->
            <div class="ml-3">
                {{ page.content }}
            </div>
            <!-- End dinamic page content  -->
        </div>
    </div>
    <!-- End Main -->
{%- endblock -%}