2017-01-12 00:32:48 +01:00
|
|
|
{% if 'jinja2.ext.i18n' not in JINJA_ENVIRONMENT.extensions and 'jinja2.ext.i18n' not in JINJA_EXTENSIONS %}
|
2017-01-09 18:14:22 +01:00
|
|
|
{% macro _(msg) %}
|
2016-08-12 02:05:34 +02:00
|
|
|
{{ msg % kwargs }}
|
|
|
|
{% endmacro %}
|
|
|
|
{% 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 %}
|
|
|
|
<meta name="robots" content="noindex, nofollow" />
|
|
|
|
{% else %}
|
|
|
|
<meta name="robots" content="{{ ROBOTS }}" />
|
|
|
|
{% endif %}
|
|
|
|
|
2018-06-24 05:37:12 +02:00
|
|
|
{% if USE_GOOGLE_FONTS != False %}
|
|
|
|
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro|Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
|
|
|
|
{% 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
|
|
|
|
2016-04-24 00:44:16 +02:00
|
|
|
<link rel="stylesheet" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/pygments/{{ PYGMENTS_STYLE|default('github') }}.min.css">
|
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 %}
|
2016-02-16 01:15:28 +01:00
|
|
|
<link href="{{ SITEURL }}/{{ CUSTOM_CSS }}" rel="stylesheet">
|
2015-09-27 19:48:43 +02:00
|
|
|
{% endif %}
|
2016-02-16 01:15:28 +01:00
|
|
|
|
2015-07-19 02:04:01 +02:00
|
|
|
{% if FEED_ALL_ATOM %}
|
2016-02-16 01:15:28 +01:00
|
|
|
<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom">
|
2015-07-19 02:04:01 +02:00
|
|
|
{% endif %}
|
2016-02-16 01:15:28 +01:00
|
|
|
|
2015-07-19 02:04:01 +02:00
|
|
|
{% if FEED_ALL_RSS %}
|
2016-02-16 01:15:28 +01:00
|
|
|
<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS">
|
2015-07-19 02:04:01 +02:00
|
|
|
{% endif %}
|
2016-02-16 01:15:28 +01:00
|
|
|
|
2015-07-20 07:04:44 +02:00
|
|
|
{% if FAVICON %}
|
2016-02-16 01:15:28 +01:00
|
|
|
<link rel="shortcut icon" href="{{ FAVICON }}" type="image/x-icon">
|
|
|
|
<link rel="icon" href="{{ FAVICON }}" type="image/x-icon">
|
2015-07-20 07:04:44 +02:00
|
|
|
{% endif %}
|
2015-07-19 02:04:01 +02:00
|
|
|
|
2017-09-20 22:34:36 +02:00
|
|
|
{% if GOOGLE_ANALYTICS %}
|
|
|
|
{% include "partial/ga.html" %}
|
|
|
|
{% endif %}
|
|
|
|
|
2016-04-23 04:07:58 +02:00
|
|
|
{% if BROWSER_COLOR %}
|
|
|
|
<!-- Chrome, Firefox OS and Opera -->
|
|
|
|
<meta name="theme-color" content="{{ BROWSER_COLOR }}">
|
|
|
|
<!-- Windows Phone -->
|
|
|
|
<meta name="msapplication-navbutton-color" content="{{ BROWSER_COLOR }}">
|
|
|
|
<!-- iOS Safari -->
|
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
2017-04-22 08:41:39 +02:00
|
|
|
<!-- Microsoft EDGE -->
|
|
|
|
<meta name="msapplication-TileColor" content="{{ BROWSER_COLOR }}">
|
2016-04-23 04:07:58 +02:00
|
|
|
{% endif %}
|
2016-02-16 01:15:28 +01:00
|
|
|
|
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 %}
|
2017-09-20 22:34:36 +02:00
|
|
|
{% if GOOGLE_TAG_MANAGER %}
|
|
|
|
{% include "partial/gtm.html" %}
|
|
|
|
{% endif %}
|
2015-07-19 02:04:01 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
2015-11-25 02:55:55 +01:00
|
|
|
{% if GOOGLE_TAG_MANAGER %}
|
2017-09-20 22:34:36 +02:00
|
|
|
{% include "partial/gtm_noscript.html" %}
|
2015-11-25 02:55:55 +01:00
|
|
|
{% endif %}
|
2015-07-19 02:04:01 +02:00
|
|
|
<aside>
|
2015-07-22 06:26:35 +02:00
|
|
|
<div>
|
2015-07-19 02:04:01 +02:00
|
|
|
<a href="{{ SITEURL }}">
|
2015-07-20 04:34:54 +02:00
|
|
|
{% if SITELOGO %}
|
|
|
|
<img src="{{ SITELOGO }}" alt="{{ SITETITLE }}" title="{{ SITETITLE }}">
|
2015-07-19 02:04:01 +02:00
|
|
|
{% else %}
|
2015-08-21 07:25:56 +02:00
|
|
|
<img src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/img/profile.png" alt="{{ SITETITLE }}" title="{{ SITETITLE }}">
|
2015-07-19 02:04:01 +02:00
|
|
|
{% endif %}
|
|
|
|
</a>
|
2015-07-20 04:34:54 +02:00
|
|
|
<h1><a href="{{ SITEURL }}">{{ SITETITLE }}</a></h1>
|
2016-08-11 04:20:35 +02:00
|
|
|
|
2016-04-30 20:03:05 +02:00
|
|
|
{% if SITESUBTITLE %}<p>{{ SITESUBTITLE }}</p>{% endif %}
|
2016-08-11 04:20:35 +02:00
|
|
|
|
2016-04-30 22:27:49 +02:00
|
|
|
{% if pages or LINKS %}
|
2015-07-19 02:04:01 +02:00
|
|
|
<nav>
|
|
|
|
<ul class="list">
|
2016-11-19 15:27:16 +01:00
|
|
|
{% if not PAGES_SORT_ATTRIBUTE -%}
|
|
|
|
{% set PAGES_SORT_ATTRIBUTE = 'title' %}
|
|
|
|
{%- endif %}
|
|
|
|
{% for page in pages|sort(attribute=PAGES_SORT_ATTRIBUTE) %}
|
2017-02-23 17:47:51 +01:00
|
|
|
<li><a href="{{ SITEURL }}/{{ page.url }}{% if not DISABLE_URL_HASH %}#{{ page.slug }}{% endif %}">{{ page.title }}</a></li>
|
2015-07-19 02:04:01 +02:00
|
|
|
{% endfor %}
|
2016-08-11 04:20:35 +02:00
|
|
|
|
2015-07-19 02:04:01 +02:00
|
|
|
{% for name, link in LINKS %}
|
|
|
|
<li><a href="{{ link }}" target="_blank">{{ name }}</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
2016-04-30 20:03:05 +02:00
|
|
|
{% endif %}
|
2016-08-11 04:20:35 +02:00
|
|
|
|
2015-07-19 02:04:01 +02:00
|
|
|
<ul class="social">
|
|
|
|
{% for name, link in SOCIAL %}
|
2018-07-05 23:12:25 +02:00
|
|
|
<li><a class="sc-{{ name }}" href="{{ link }}" target="_blank">
|
2018-10-07 12:50:49 +02:00
|
|
|
<i class="{% if name in ['envelope-open', 'rss'] %}
|
|
|
|
fas
|
|
|
|
{% else %}
|
|
|
|
fab
|
|
|
|
{% endif %}
|
|
|
|
fa-{{ name }}">
|
|
|
|
</i>
|
2018-07-17 16:39:17 +02:00
|
|
|
</a></li>
|
2015-07-19 02:04:01 +02:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
2016-11-08 01:13:43 +01:00
|
|
|
|
|
|
|
{% if GOOGLE_ADSENSE and GOOGLE_ADSENSE.ads.aside %}
|
|
|
|
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
|
|
|
<ins class="adsbygoogle ads-aside"
|
|
|
|
data-ad-client="{{ GOOGLE_ADSENSE.ca_id }}"
|
|
|
|
data-ad-slot="{{ GOOGLE_ADSENSE.ads.aside }}"></ins>
|
|
|
|
<script>
|
|
|
|
(adsbygoogle = window.adsbygoogle || []).push({});
|
|
|
|
</script>
|
|
|
|
{% endif %}
|
|
|
|
|
2015-07-19 02:04:01 +02:00
|
|
|
</aside>
|
|
|
|
<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 %}
|
|
|
|
|
2015-07-19 02:04:01 +02:00
|
|
|
{% if MAIN_MENU %}
|
|
|
|
<nav>
|
2016-08-11 04:20:35 +02:00
|
|
|
<a href="{{ SITEURL }}">{{ _('Home') }}</a>
|
|
|
|
|
2015-07-19 02:04:01 +02:00
|
|
|
{% for title, link in MENUITEMS %}
|
|
|
|
<a href="{{ link }}">{{ title }}</a>
|
|
|
|
{% endfor %}
|
2016-08-11 04:20:35 +02:00
|
|
|
|
2015-07-19 02:04:01 +02:00
|
|
|
{% if FEED_ALL_ATOM %}
|
2016-08-11 04:20:35 +02:00
|
|
|
<a href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}">{{ _('Atom') }}</a>
|
2015-07-19 02:04:01 +02:00
|
|
|
{% endif %}
|
2016-08-11 04:20:35 +02:00
|
|
|
|
2015-07-19 02:04:01 +02:00
|
|
|
{% if FEED_ALL_RSS %}
|
2016-08-11 04:20:35 +02:00
|
|
|
<a href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}">{{ _('RSS') }}</a>
|
2015-07-19 02:04:01 +02:00
|
|
|
{% endif %}
|
|
|
|
</nav>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
<footer>
|
|
|
|
{% if CC_LICENSE %}
|
2015-07-20 04:34:54 +02:00
|
|
|
{% include "partial/cc_license.html" %}
|
2015-07-19 02:04:01 +02:00
|
|
|
{% else %}
|
2016-08-11 04:20:35 +02:00
|
|
|
{% include "partial/copyright.html" %}
|
2015-07-19 02:04:01 +02:00
|
|
|
{% endif %}
|
|
|
|
</footer>
|
|
|
|
</main>
|
2015-11-25 02:55:55 +01:00
|
|
|
|
2015-11-25 01:01:08 +01:00
|
|
|
{% if GUAGES %}
|
2015-11-25 02:55:55 +01:00
|
|
|
{% include "partial/guages.html" %}
|
2015-11-25 01:01:08 +01:00
|
|
|
{% endif %}
|
2015-11-25 02:55:55 +01:00
|
|
|
|
2015-07-21 05:49:51 +02:00
|
|
|
{% if ADD_THIS_ID %}
|
2015-11-25 02:55:55 +01:00
|
|
|
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid={{ ADD_THIS_ID }}" async="async"></script>
|
2015-07-21 05:49:51 +02:00
|
|
|
{% endif %}
|
2015-11-18 15:01:47 +01:00
|
|
|
|
|
|
|
{% if PIWIK_URL and PIWIK_SITE_ID %}
|
2015-11-25 02:55:55 +01:00
|
|
|
{% include "partial/piwik.html" %}
|
2015-11-18 15:01:47 +01:00
|
|
|
{% endif %}
|
2015-11-25 02:55:55 +01:00
|
|
|
|
2016-06-03 01:11:21 +02:00
|
|
|
{% include "partial/jsonld.html" %}
|
|
|
|
|
2015-11-25 02:55:55 +01:00
|
|
|
{% block additional_js %}{% endblock %}
|
2017-03-10 01:43:12 +01:00
|
|
|
|
2017-02-15 14:23:50 +01:00
|
|
|
{% if GITHUB_CORNER_URL %}
|
2017-03-10 01:43:12 +01:00
|
|
|
{% include 'partial/github.html' %}
|
2017-02-15 14:08:35 +01:00
|
|
|
{% endif %}
|
2015-07-19 02:04:01 +02:00
|
|
|
</body>
|
|
|
|
</html>
|