39 lines
1.4 KiB
HTML
39 lines
1.4 KiB
HTML
|
{% 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"].favicon %}
|
||
|
<link rel="shortcut icon" href="{{ config.pluginsConfig["theme-gestalt"].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"].baseUrl %}
|
||
|
<base href="{{ config.pluginsConfig["theme-gestalt"].baseUrl }}">
|
||
|
{% endif %}
|
||
|
{% endblock %}
|
||
|
|
||
|
{% block style %}
|
||
|
{### Include theme css if not disabled by user config ###}
|
||
|
{% if not config.pluginsConfig["theme-gestalt"].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 %}
|