layout.html 1.4 KB
Newer Older
S
Samy Pessé 已提交
1
<!DOCTYPE HTML>
S
Samy Pessé 已提交
2
<html lang="{{ book.language }}" {% if page.dir == "rtl" %}dir="rtl"{% endif %}>
S
Samy Pessé 已提交
3
    <head>
S
Samy Pessé 已提交
4
        <title>{% block title %}{{ book.title|d("GitBook", true) }}{% endblock %}</title>
S
Samy Pessé 已提交
5 6 7 8 9 10 11
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="{% block description %}{{ book.description }}{% endblock %}">
        <meta name="generator" content="GitBook {{ gitbook.version }}">
        {% if book.author %}<meta name="author" content="{{ book.author }}">{% endif %}
        {% if book.isbn %}<meta name="identifier" content="{{ book.isbn }}" scheme="ISBN">{% endif %}
S
Samy Pessé 已提交
12 13 14 15 16 17 18 19 20 21 22 23
        {% block style %}
            {% for resource in plugins.resources.css %}
                {% if resource.url %}
                <link rel="stylesheet" href="{{ resource.url }}">
                {% else %}
                <link rel="stylesheet" href="{{ resource.path|resolveAsset }}">
                {% endif %}
            {% endfor %}
            {% for type, style in styles %}
                <link rel="stylesheet" href="{{ style|resolveFile }}">
            {% endfor %}
        {% endblock %}
S
Samy Pessé 已提交
24 25 26 27 28 29 30
        {% block head %}{% endblock %}
    </head>
    <body>
        {% block body %}{% endblock %}
        {% block javascript %}{% endblock %}
    </body>
</html>