2021-06-17 01:13:52 +02:00
|
|
|
{% if 'jinja2.ext.i18n' not in JINJA_ENVIRONMENT.extensions %}
|
2020-04-17 21:52:12 +02:00
|
|
|
{%- macro _(msg) -%}
|
2016-08-12 02:05:34 +02:00
|
|
|
{{ msg % kwargs }}
|
2020-04-17 21:52:12 +02:00
|
|
|
{%- endmacro -%}
|
2016-08-12 02:05:34 +02:00
|
|
|
{% endif %}
|
|
|
|
|
2015-07-19 02:04:01 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="{{ DEFAULT_LANG }}">
|
|
|
|
<head>
|
2017-11-14 18:17:20 +01:00
|
|
|
<meta charset="utf-8" />
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
|
|
<meta name="HandheldFriendly" content="True" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
{% if page in hidden_pages %}
|
2022-07-08 20:36:43 +02:00
|
|
|
<meta name="robots" content="noindex, nofollow" />
|
2017-11-14 18:17:20 +01:00
|
|
|
{% else %}
|
2022-07-08 20:36:43 +02:00
|
|
|
<meta name="robots" content="{{ ROBOTS }}" />
|
2017-11-14 18:17:20 +01:00
|
|
|
{% endif %}
|
|
|
|
|
2018-06-24 05:37:12 +02:00
|
|
|
{% if USE_GOOGLE_FONTS != False %}
|
2020-08-26 01:16:34 +02:00
|
|
|
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,400;0,700;1,400&family=Source+Sans+Pro:ital,wght@0,300;0,400;0,700;1,400&display=swap" rel="stylesheet">
|
2018-06-24 05:37:12 +02:00
|
|
|
{% endif %}
|
2016-02-16 01:15:28 +01:00
|
|
|
|
2015-07-19 02:04:01 +02:00
|
|
|
{% if USE_LESS %}
|
2016-02-16 01:15:28 +01:00
|
|
|
<link rel="stylesheet/less" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/stylesheet/style.less">
|
|
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/less.js/2.5.1/less.min.js" type="text/javascript"></script>
|
2015-07-19 02:04:01 +02:00
|
|
|
{% else %}
|
2016-02-16 01:15:28 +01:00
|
|
|
<link rel="stylesheet" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/stylesheet/style.min.css">
|
2015-07-19 02:04:01 +02:00
|
|
|
{% endif %}
|
2016-02-16 01:15:28 +01:00
|
|
|
|
2020-04-16 17:00:25 +02:00
|
|
|
{# DARK THEME STYLES #}
|
2020-04-16 23:49:09 +02:00
|
|
|
{% if THEME_COLOR == "dark" or THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE or THEME_COLOR_ENABLE_USER_OVERRIDE %}
|
|
|
|
<link id="dark-theme-style" rel="stylesheet" type="text/css"
|
|
|
|
{% if THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE %}
|
|
|
|
{% if THEME_COLOR|default("light") == "dark" %}
|
|
|
|
media="(prefers-color-scheme: dark), (prefers-color-scheme: no-preference)"
|
|
|
|
{% else %}
|
|
|
|
media="(prefers-color-scheme: dark)"
|
|
|
|
{% endif %}
|
|
|
|
{% elif THEME_COLOR_ENABLE_USER_OVERRIDE and THEME_COLOR|default("light") == "light" %}
|
|
|
|
disabled="disabled"
|
2020-04-16 02:33:28 +02:00
|
|
|
{% endif %}
|
2020-04-16 23:49:09 +02:00
|
|
|
href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/stylesheet/dark-theme.min.css">
|
2020-04-16 02:33:28 +02:00
|
|
|
{% endif %}
|
2020-04-16 00:55:28 +02:00
|
|
|
|
2020-04-16 17:00:25 +02:00
|
|
|
{# PYGMENTS STYLES #}
|
2020-04-16 23:49:09 +02:00
|
|
|
{% if THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE or THEME_COLOR_ENABLE_USER_OVERRIDE or THEME_COLOR == "dark" %}
|
|
|
|
<link id="pygments-dark-theme" rel="stylesheet" type="text/css"
|
2020-04-16 00:55:28 +02:00
|
|
|
{% if THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE %}
|
|
|
|
{% if THEME_COLOR|default("light") == "dark" %}
|
|
|
|
media="(prefers-color-scheme: dark), (prefers-color-scheme: no-preference)"
|
|
|
|
{% else %}
|
|
|
|
media="(prefers-color-scheme: dark)"
|
|
|
|
{% endif %}
|
2020-04-16 23:49:09 +02:00
|
|
|
{% elif THEME_COLOR_ENABLE_USER_OVERRIDE and THEME_COLOR|default("light") == "light" %}
|
|
|
|
disabled="disabled"
|
2020-04-16 00:55:28 +02:00
|
|
|
{% endif %}
|
|
|
|
href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/pygments/{{ PYGMENTS_STYLE_DARK or PYGMENTS_STYLE or 'monokai' }}.min.css">
|
|
|
|
{% endif %}
|
|
|
|
{% if THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE or not THEME_COLOR or THEME_COLOR == "light" %}
|
2020-04-16 23:49:09 +02:00
|
|
|
<link id="pygments-light-theme" rel="stylesheet" type="text/css"
|
2020-04-16 00:55:28 +02:00
|
|
|
{% if THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE %}
|
|
|
|
{% if THEME_COLOR|default("light") == "dark" %}
|
|
|
|
media="(prefers-color-scheme: light)"
|
|
|
|
{% else %}
|
|
|
|
media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)"
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/pygments/{{ PYGMENTS_STYLE|default('github') }}.min.css">
|
|
|
|
{% endif %}
|
|
|
|
|
2021-12-28 22:11:17 +01:00
|
|
|
{% if PLUGINS and ('tipue_search' in PLUGINS or 'pelican.plugins.tipue_search' in PLUGINS) %}
|
2022-02-25 09:20:21 +01:00
|
|
|
{% if USE_GOOGLE_FONTS != False %}
|
|
|
|
<link href="https://fonts.googleapis.com/css?family=Merriweather:300,400|Open+Sans" rel="stylesheet">
|
|
|
|
{% endif %}
|
2022-03-07 13:55:35 +01:00
|
|
|
<link rel="stylesheet"
|
|
|
|
href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/tipuesearch/tipuesearch.min.css" />
|
|
|
|
{% endif %}
|
|
|
|
|
2022-08-31 19:35:19 +02:00
|
|
|
{% if 'pelican.plugins.search' in PLUGINS %}
|
|
|
|
<link rel="stylesheet"
|
|
|
|
type="text/css"
|
|
|
|
href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/stork/stork.css" />
|
2020-02-07 18:06:17 +01:00
|
|
|
{% endif %}
|
|
|
|
|
2018-07-05 23:12:25 +02:00
|
|
|
<link rel="stylesheet" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/font-awesome/css/fontawesome.css">
|
|
|
|
<link rel="stylesheet" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/font-awesome/css/brands.css">
|
|
|
|
<link rel="stylesheet" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/font-awesome/css/solid.css">
|
2016-02-16 01:15:28 +01:00
|
|
|
|
2015-09-27 19:48:43 +02:00
|
|
|
{% if CUSTOM_CSS %}
|
2022-03-01 03:14:17 +01:00
|
|
|
<link rel="stylesheet" type="text/css" href="{% if main_siteurl is defined %}{{ main_site }}{% else %}{{ SITEURL }}{% endif %}/{{ CUSTOM_CSS }}">
|
2015-09-27 19:48:43 +02:00
|
|
|
{% endif %}
|
2016-02-16 01:15:28 +01:00
|
|
|
|
2022-07-08 20:36:43 +02:00
|
|
|
{% include "partial/icon.html" %}
|
2016-02-16 01:15:28 +01:00
|
|
|
|
2022-07-08 20:36:43 +02:00
|
|
|
{% include "partial/color.html" %}
|
2015-07-19 02:04:01 +02:00
|
|
|
|
2022-07-08 20:36:43 +02:00
|
|
|
{% include "partial/feed.html" %}
|
2017-09-20 22:34:36 +02:00
|
|
|
|
2022-07-08 20:36:43 +02:00
|
|
|
{% include "partial/ga.html" %}
|
|
|
|
{% include "partial/ggst.html" %}
|
2016-02-16 01:15:28 +01:00
|
|
|
|
2022-09-08 12:17:10 +02:00
|
|
|
{% if PGP_KEY %}
|
|
|
|
<link rel="pgpkey" type="application/pgp-keys" href="{{ SITEURL }}/{{ PGP_KEY }}">
|
|
|
|
{% endif %}
|
|
|
|
|
2021-04-21 22:51:01 +02:00
|
|
|
{% if not PLUGINS or 'seo' not in PLUGINS %}
|
|
|
|
{% if REL_CANONICAL %}
|
|
|
|
{% if page %}
|
|
|
|
<link rel="canonical" href="{{ SITEURL }}/{{ page.url }}">
|
|
|
|
{% elif article %}
|
|
|
|
<link rel="canonical" href="{{ SITEURL }}/{{ article.url }}">
|
|
|
|
{% elif page_name == 'index' and not articles_previous_page %}
|
|
|
|
<link rel="canonical" href="{{ SITEURL }}">
|
|
|
|
{% elif author or category or tag or page_name == 'index' %}
|
|
|
|
<link rel="canonical" href="{{ SITEURL }}/{{ articles_page.url }}">
|
|
|
|
{% else %}
|
|
|
|
<link rel="canonical" href="{{ SITEURL }}/{{ output_file }}">
|
|
|
|
{% endif %}
|
2020-12-01 19:39:12 +01:00
|
|
|
{% endif %}
|
2021-04-21 22:51:01 +02:00
|
|
|
{% endif %}
|
|
|
|
|
2015-07-20 04:34:54 +02:00
|
|
|
{% block meta %}
|
2016-02-16 01:15:28 +01:00
|
|
|
<meta name="author" content="{{ AUTHOR }}" />
|
|
|
|
<meta name="description" content="{{ SITEDESCRIPTION }}" />
|
|
|
|
{% include "partial/og.html" %}
|
2015-07-19 02:04:01 +02:00
|
|
|
{% endblock %}
|
2016-02-16 01:15:28 +01:00
|
|
|
|
2015-07-20 04:34:54 +02:00
|
|
|
<title>{{ SITENAME }}{% block title %}{% endblock %}</title>
|
2016-11-08 01:13:43 +01:00
|
|
|
|
|
|
|
{% if GOOGLE_ADSENSE and GOOGLE_ADSENSE.page_level_ads %}
|
|
|
|
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
|
|
|
<script>
|
|
|
|
(adsbygoogle = window.adsbygoogle || []).push({
|
|
|
|
google_ad_client: "{{ GOOGLE_ADSENSE.ca_id }}",
|
|
|
|
enable_page_level_ads: true
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{% endif %}
|
2022-07-08 20:36:43 +02:00
|
|
|
|
|
|
|
{% include "partial/gtm.html" %}
|
|
|
|
{% include "partial/clarity.html" %}
|
2015-07-19 02:04:01 +02:00
|
|
|
</head>
|
2020-04-20 23:36:36 +02:00
|
|
|
<body {% if not THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE %}class="{{ THEME_COLOR|default('light') }}-theme"{% endif %}>
|
2022-07-08 20:36:43 +02:00
|
|
|
{% include "partial/gtm_noscript.html" %}
|
2016-08-11 04:20:35 +02:00
|
|
|
|
2022-07-08 20:36:43 +02:00
|
|
|
{% include "partial/sidebar.html" %}
|
2016-11-08 01:13:43 +01:00
|
|
|
|
2015-07-19 02:04:01 +02:00
|
|
|
<main>
|
2016-11-08 01:13:43 +01:00
|
|
|
{% if GOOGLE_ADSENSE and GOOGLE_ADSENSE.ads.main_menu %}
|
|
|
|
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
|
|
|
<ins class="adsbygoogle ads-responsive"
|
|
|
|
data-ad-client="{{ GOOGLE_ADSENSE.ca_id }}"
|
|
|
|
data-ad-slot="{{ GOOGLE_ADSENSE.ads.main_menu }}"></ins>
|
|
|
|
<script>
|
|
|
|
(adsbygoogle = window.adsbygoogle || []).push({});
|
|
|
|
</script>
|
|
|
|
{% endif %}
|
|
|
|
|
2022-07-08 20:36:43 +02:00
|
|
|
{% include "partial/nav.html" %}
|
2015-07-19 02:04:01 +02:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
{% endblock %}
|
|
|
|
|
2022-07-08 20:36:43 +02:00
|
|
|
{% include "partial/footer.html" %}
|
2015-07-19 02:04:01 +02:00
|
|
|
</main>
|
2015-11-25 02:55:55 +01:00
|
|
|
|
2016-06-03 01:11:21 +02:00
|
|
|
{% include "partial/jsonld.html" %}
|
2022-07-08 20:36:43 +02:00
|
|
|
{% include "partial/guages.html" %}
|
|
|
|
{% include "partial/addthis.html" %}
|
|
|
|
{% include "partial/matomo.html" %}
|
|
|
|
{% include 'partial/github.html' %}
|
|
|
|
{% include 'partial/stork.html' %}
|
2020-02-07 18:06:17 +01:00
|
|
|
|
2020-04-20 23:36:36 +02:00
|
|
|
{% block additional_js %}{% endblock %}
|
2015-07-19 02:04:01 +02:00
|
|
|
</body>
|
|
|
|
</html>
|