174 lines
6.3 KiB
HTML
174 lines
6.3 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
{% block head %}
|
|
<title>{% block title %}{{config.title}}{% endblock %}</title>
|
|
<meta charset="utf-8" />
|
|
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous"/>
|
|
{% if config.extra.themes %}
|
|
{% for theme in config.extra.themes %}
|
|
<link
|
|
rel="stylesheet{% if theme != config.extra.theme %} alternate{% endif %}"
|
|
{% if theme == 'default' %}
|
|
href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
|
|
{% else %}
|
|
href="https://bootswatch.com/5/{{theme}}/bootstrap.min.css"
|
|
{% endif %}
|
|
id="{{theme}}"
|
|
class="alternate"
|
|
>
|
|
{% endfor %}
|
|
{% elif config.extra.theme %}
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://bootswatch.com/5/{{config.extra.theme}}/bootstrap.min.css"
|
|
>
|
|
{% else %}
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
|
|
{% endif %}
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
|
|
<script src="{{get_url(path="js/theme.js")}}"></script>
|
|
<script src="{{get_url(path="js/scheme.js")}}"></script>
|
|
<script src="{{get_url(path="js/blockquote.js")}}"></script>
|
|
{% if config.build_search_index %}
|
|
<script defer src="{{get_url(path="elasticlunr.min.js")}}"></script>
|
|
<script defer src="{{get_url(path="search_index.en.js")}}"></script>
|
|
<script src="{{get_url(path="js/search.js")}}"></script>
|
|
{% endif %}
|
|
{% endblock %}
|
|
</head>
|
|
<body class="d-flex flex-column min-vh-100">
|
|
{% if config.extra.banner %}
|
|
<div class="w-100">
|
|
<img src="{{get_url(path=config.extra.banner)}}" class="w-100" />
|
|
</div>
|
|
{% endif %}
|
|
<nav class="
|
|
navbar
|
|
navbar-expand-lg
|
|
navbar-{{config.extra.navbar_type}}
|
|
bg-{{config.extra.navbar_bg}}
|
|
">
|
|
<div class="container-fluid">
|
|
<a class="navbar-brand"
|
|
href="{{config.base_url}}"
|
|
title="{{config.description}}"
|
|
>{{config.title}}</a>
|
|
<button
|
|
class="navbar-toggler"
|
|
type="button"
|
|
data-bs-toggle="collapse"
|
|
data-bs-target="#navbarColor02"
|
|
aria-controls="navbarColor02"
|
|
aria-expanded="false"
|
|
aria-label="Toggle navigation"
|
|
>
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
<div class="collapse navbar-collapse" id="navbarColor02">
|
|
<ul class="navbar-nav me-auto">
|
|
{% for item in config.extra.navbar %}
|
|
<li class="nav-item">
|
|
<a
|
|
class="nav-link"
|
|
href="{% if not item.url is containing("://") %}{{config.base_url}}{% endif %}{{item.url}}"
|
|
>{{item.title}}</a>
|
|
</li>
|
|
{% endfor %}
|
|
{% if config.extra.themes %}
|
|
<li class="nav-item dropdown">
|
|
<a
|
|
class="nav-link dropdown-toggle"
|
|
href="#"
|
|
id="navbarDropdown"
|
|
role="button"
|
|
data-bs-toggle="dropdown"
|
|
aria-expanded="false"
|
|
>
|
|
Choose a Theme
|
|
</a>
|
|
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
|
|
{% for theme in config.extra.themes %}
|
|
<li>
|
|
<a
|
|
class="dropdown-item"
|
|
href="#"
|
|
onclick="switchTheme('{{theme}}')"
|
|
>{{theme | capitalize}}</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</li>
|
|
{% endif %}
|
|
{% if config.extra.schemes %}
|
|
<li class="nav-item dropdown">
|
|
<a
|
|
class="nav-link dropdown-toggle"
|
|
href="#"
|
|
id="navbarDropdown"
|
|
role="button"
|
|
data-bs-toggle="dropdown"
|
|
aria-expanded="false"
|
|
>
|
|
Choose a Color Scheme
|
|
</a>
|
|
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
|
|
{% for scheme in config.extra.schemes %}
|
|
<li>
|
|
<a
|
|
class="dropdown-item"
|
|
href="#"
|
|
onclick="switchScheme('{{scheme}}')"
|
|
>{{scheme | capitalize}}</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|
|
{% if config.extra.search %}
|
|
<form class="d-flex">
|
|
<input
|
|
class="form-control me-sm-2"
|
|
type="text"
|
|
placeholder="{{config.extra.search}}"
|
|
/>
|
|
<button
|
|
class="btn btn-secondary my-2 my-sm-0"
|
|
type="button"
|
|
onclick="goSearch(this)"
|
|
><i class="fas fa-search"></i></button>
|
|
</form>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
<main class="container mx-auto my-5">
|
|
{% block content %}
|
|
{% endblock %}
|
|
</main>
|
|
<footer class="
|
|
mt-auto p-5
|
|
bg-{{config.extra.footer_bg}}
|
|
text-center
|
|
text-{{config.extra.footer_font}}
|
|
">
|
|
<a
|
|
href="mailto:{{config.extra.email}}"
|
|
class="text-reset text-decoration-none"
|
|
>{{config.extra.email}}</a>
|
|
<div class="mt-2">
|
|
{% for icon in config.extra.social_icons %}
|
|
<a
|
|
class="text-reset mx-1 bg-transparent"
|
|
href="{{icon.url}}"
|
|
title="{{icon.title}}"
|
|
><i class="fab fa-{{icon.icon}}"></i></a>
|
|
{% endfor %}
|
|
</div>
|
|
</footer>
|
|
</body>
|
|
</html>
|