{% extends "../layout.html" %}

{% block head %}
    {{ super() }}
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    {### Use the favicon from user config or default ###}
    {% if config.pluginsConfig["theme-gestalt-yl"].favicon %}
        <link rel="shortcut icon" href="{{ config.pluginsConfig["theme-gestalt-yl"].favicon }}" type="image/x-icon">
    {% else %}
        <link rel="shortcut icon" href="{{ "images/favicon.ico"|resolveAsset }}" type="image/x-icon">
    {% endif %}
    {### Adds base url from user config ###}
    {% if config.pluginsConfig["theme-gestalt-yl"].baseUrl %}
        <base href="{{ config.pluginsConfig["theme-gestalt-yl"].baseUrl }}">
    {% endif %}
{% endblock %}

{% block style %}
    {### Include theme css if not disabled by user config ###}
    {% if not config.pluginsConfig["theme-gestalt-yl"].excludeDefaultStyles %}
        <link rel="stylesheet" href="{{ "style.css"|resolveAsset }}">
    {% endif %}

    {{ super() }}

    {### Custom stylesheets for the book ###}

    {% for type, style in config.styles %}
        {% if fileExists(style) and type == "website" %}
        <link rel="stylesheet" href="{{ style|resolveFile }}">
        {% endif %}
    {% endfor %}
{% endblock %}

{% block body %}{% endblock %}
