flex/templates/base.html

122 lines
4.1 KiB
HTML
Raw Normal View History

2015-07-19 02:04:01 +02:00
<!DOCTYPE html>
<html lang="{{ DEFAULT_LANG }}">
<head>
<link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,400italic' rel='stylesheet' type='text/css'>
{% if USE_LESS %}
2015-08-21 07:25:56 +02:00
<link rel="stylesheet/less" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/style.less">
2015-07-19 02:04:01 +02:00
<script src="//cdnjs.cloudflare.com/ajax/libs/less.js/2.5.1/less.min.js" type="text/javascript"></script>
{% else %}
2015-08-21 07:25:56 +02:00
<link rel="stylesheet" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/style.min.css">
2015-07-19 02:04:01 +02:00
{% endif %}
2015-08-21 07:25:56 +02:00
<link rel="stylesheet" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/pygments.min.css">
<link rel="stylesheet" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/font-awesome.min.css">
{% if CUSTOM_CSS %}
<link href="{{ SITEURL }}/{{ CUSTOM_CSS }}" rel="stylesheet">
{% endif %}
2015-07-19 02:04:01 +02:00
{% if FEED_ALL_ATOM %}
2015-07-20 04:34:54 +02: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 %}
{% if FEED_ALL_RSS %}
2015-07-20 04:34:54 +02: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 %}
2015-07-20 07:04:44 +02:00
{% if FAVICON %}
<link rel="shortcut icon" href="{{ FAVICON }}" type="image/x-icon">
<link rel="icon" href="{{ FAVICON }}" type="image/x-icon">
{% endif %}
2015-07-19 02:04:01 +02:00
<meta charset="utf-8" />
2015-07-20 04:34:54 +02:00
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="{{ ROBOTS }}" />
{% block meta %}
<meta name="author" content="{{ AUTHOR }}" />
<meta name="description" content="{{ SITEDESCRIPTION }}" />
{% include "partial/og.html" %}
2015-07-19 02:04:01 +02:00
{% endblock %}
2015-07-20 04:34:54 +02:00
<title>{{ SITENAME }}{% block title %}{% endblock %}</title>
2015-07-19 02:04:01 +02:00
</head>
<body>
2015-11-25 02:55:55 +01:00
{% if GOOGLE_TAG_MANAGER %}
{% include "partial/gtm.html" %}
{% 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>
<p>{{ SITESUBTITLE }}</p>
2015-07-19 02:04:01 +02:00
<nav>
<ul class="list">
2016-01-15 04:59:05 +01:00
{% if DISPLAY_PAGES_ON_MENU %}
2015-07-23 04:02:15 +02:00
{% for page in pages|sort(attribute='title') %}
2015-07-19 02:04:01 +02:00
<li><a href="{{ SITEURL }}/{{ page.url }}#{{ page.slug }}">{{ page.title }}</a></li>
{% endfor %}
2016-01-15 04:59:05 +01:00
{% endif %}
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>
<ul class="social">
{% for name, link in SOCIAL %}
<li><a class="sc-{{ name }}" href="{{ link }}" target="_blank"><i class="fa fa-{{ name }}"></i></a></li>
{% endfor %}
</ul>
</div>
</aside>
<main>
{% if MAIN_MENU %}
<nav>
<a href="{{ SITEURL }}">Home</a>
{% for title, link in MENUITEMS %}
<a href="{{ link }}">{{ title }}</a>
{% endfor %}
{% if FEED_ALL_ATOM %}
<a href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}">Atom</a>
{% endif %}
{% if FEED_ALL_RSS %}
<a href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}">RSS</a>
{% 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 %}
2015-11-25 02:55:55 +01:00
<p>&copy; {{ AUTHOR }} {{ COPYRIGHT_YEAR }}</p>
{% include "partial/flex.html" %}
{% if STATUSCAKE %}
{% include "partial/statuscake.html" %}
{% endif %}
2015-07-19 02:04:01 +02:00
{% endif %}
</footer>
</main>
2015-11-25 02:55:55 +01:00
{% if GOOGLE_ANALYTICS %}
{% include "partial/ga.html" %}
{% endif %}
{% if GUAGES %}
2015-11-25 02:55:55 +01:00
{% include "partial/guages.html" %}
{% 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
{% block additional_js %}{% endblock %}
2015-07-19 02:04:01 +02:00
</body>
</html>