Initial version.
[static.git] / layout / base.j2
1 {% macro site_name() -%}
2     Krótki kurs własności intelektualnej
3 {%- endmacro -%}
4
5 {%- macro title() -%}
6     {% block title %}{{ resource.meta.title }}{% endblock %}
7 {%- endmacro -%}
8 <!DOCTYPE html>
9 <html prefix="og: http://ogp.me/ns#">
10     <head>
11        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
12        <title>{% block full_title %}{{ title() }} | {{ site_name() }}{% endblock %}</title>
13        <!--link rel="shortcut icon" type="image/png" href="{{ media_url("images/favicon.png") }}" /-->
14        <link rel="shortcut icon" type="image/png" href="/static/img/favicon.png" />
15        <link rel="stylesheet" type="text/css" href="{{ media_url("css/book_text.css") }}" />
16        <link rel="stylesheet" type="text/css" href="{{ media_url("css/base.css") }}" />
17
18         <meta charset="UTF-8" />
19         <meta property='og:url' content='{% block ogurl %}{{ domain }}{{ resource.full_url }}{% endblock %}' />
20         <meta property='og:title' content='{% block og_title %}{{ title() }}{% endblock %}' />
21         <meta property='og:site_name' content='{{ site_name() }}' />
22         <meta property='og:description' content='{% block og_description %}{% endblock %}' />
23         <meta property='og:type' content='{% block og_type %}website{% endblock %}' />
24         <meta property='og:image' content='{% block og_image %}{{ domain }}{{ media_url("images/okladka.jpg") }}{% endblock %}' />
25         <meta property='og:locale' content='pl_PL' />
26     </head>
27     <body id="{% block bodyid %}base{% endblock %}"><div id="body">
28         {% block body %}
29
30         {% endblock %}
31
32         <footer>
33             {% include "footer.j2" %}
34         </footer>
35
36         {% include "piwik.j2" %}
37     </div></body>
38 </html>