gitbook-plugin-theme-cuav
Version:
CUAV theme for GitBook
54 lines (45 loc) • 1.83 kB
HTML
{###
Modified By 黄伟枞<weicong@cuav.net>
Modify:
1. 修改 shortcut icon
2. 新增 bootstrap_css block
3. 新增 cuav_css block
###}
{% 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">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="{{ "images/apple-touch-icon-precomposed-152.png"|resolveAsset }}">
{% set cuavConfig = config.pluginsConfig['theme-cuav'] %}
{% if cuavConfig.useGitbookIcon %}
<link rel="shortcut icon"
href="{{ 'images/gitbook.ico'|resolveAsset }}" type="image/x-icon">
{% elif cuavConfig.iconPath %}
<link rel="shortcut icon"
href="{{ cuavConfig.iconPath|resolveAsset }}" type="image/x-icon">
{% else %}
<link rel="shortcut icon"
href="{{ 'images/cuav.ico'|resolveAsset }}" type="image/x-icon">
{% endif %}
{% endblock %}
{% block style %}
{### Include theme css before plugins css ###}
<link rel="stylesheet" href="{{ "style.css"|resolveAsset }}">
{{ 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 %}
{% block bootstrap_css %}
<link rel="stylesheet" href="{{ "bootstrap.min.css"|resolveAsset }}">
{% endblock %}
{% block cuav_css %}
<link rel="stylesheet" href="{{ 'cuav-style.css'|resolveAsset }}">
{% endblock %}
{% endblock %}
{% block body %}{% endblock %}