summaryrefslogtreecommitdiff
path: root/chimere/templates/base.html
blob: 9ce000cc9dc4a6d3890892c0a334018a4cec07b5 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{% load i18n %}<!doctype html>
<html lang="fr">
<head>
    <title>{% block title %}{{PROJECT_NAME}}{% endblock %}</title>
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">

    {% block og %}
    <meta property="og:title"
          content="{{PROJECT_NAME}}{% if current_feature %} - {{current_feature.name|cut:'"'}}{% endif %}" />
    <meta property="og:type" content="article" />
    {% if current_feature %}
    <meta property="og:url" content="{{current_site}}{% if tiny %}/ty/{{tiny}}{% endif %}" />
    {% if current_feature.image %}
    <meta property="og:image" content="{{current_site}}{{current_feature.image.picture.url}}" />
    <meta property="og:image:width"
          content="{{current_feature.image.picture.width}}" />
    <meta property="og:image:height"
          content="{{current_feature.image.picture.height}}" />
    {% elif PROJECT_IMAGE %}
    <meta property="og:image" content="{{PROJECT_IMAGE}}" />
    <meta property="og:image:width"
          content="{{PROJECT_IMAGE_WIDTH}}" />
    <meta property="og:image:height"
          content="{{PROJECT_IMAGE_HEIGHT}}" />
    {% endif %}
    {% if current_feature.text_description %}
    <meta property="og:description"
          content="{{current_feature.text_description|cut:'"'}}" />
    {% else %}
    <meta property="og:description" content=" - " />
    {% endif %}
    {% else %}
    <meta property="og:url" content="{{current_site}}" />
    {% if PROJECT_IMAGE %}
    <meta property="og:image" content="{{PROJECT_IMAGE}}" />
    <meta property="og:image:width"
          content="{{PROJECT_IMAGE_WIDTH}}" />
    <meta property="og:image:height"
          content="{{PROJECT_IMAGE_HEIGHT}}" />
    {% endif %}
    <meta property="og:description" content=" - " />
    {% endif %}
    {% endblock %}

    {% block extra_head %}
    {% endblock %}
</head>
<body {% block body_id %}{% endblock %} {% block body_class %}{% endblock %}>
{% block extrabody %}
{% endblock %}
{% block body %}
<div id="header">
    {% block header %}
    {% endblock %}
</div>
<div id="sidebar">
    {% block sidebar %}
    {% endblock %}
</div>
<div id="content">
    {% block content %}
    {% endblock %}
</div>
<div id="footer">
    {% block footer %}
    {% endblock %}
</div>
<a href='#' id='mobile-footer-open-img'>+</a>
<div id="mobile-footer">
    {% block mobilefooter %}
    {% endblock %}
</div>
{% endblock %}
</body>
</html>