mirror of
https://github.com/nairobilug/pelican-alchemy.git
synced 2024-12-30 12:15:06 +01:00
This commit adds new configuration parameter, THEME_CSS_OVERRIDES, which can contain a sequence (list, tuple, etc) of URLs to extra stylesheets that will be used to override default theme appearance. Both absolute and relative URLs are supported. It makes the theme more flexible by allowing small stylesheet tweaks without requiring to maintain a fork of the whole theme. When this parameter is not set the theme behaves same as before.
59 lines
1.9 KiB
HTML
59 lines
1.9 KiB
HTML
<!doctype html>
|
|
<html lang="{{ DEFAULT_LANG }}">
|
|
|
|
<head>
|
|
<!-- Required meta tags -->
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
|
<title>{% block title %}| {{ SITENAME }}{% endblock %}</title>
|
|
<link rel="canonical" href="{{ SITEURL }}/{{ output_file }}">
|
|
|
|
{% if RFG_FAVICONS %}
|
|
<link rel="apple-touch-icon" href="{{ SITEURL }}/apple-touch-icon.png" sizes="180x180">
|
|
<link rel="icon" type="image/png" href="{{ SITEURL }}/favicon-32x32.png" sizes="32x32">
|
|
<link rel="icon" type="image/png" href="{{ SITEURL }}/favicon-16x16.png" sizes="16x16">
|
|
<link rel="manifest" href="{{ SITEURL }}/manifest.json">
|
|
<meta name="theme-color" content="#333333">
|
|
{% endif %}
|
|
|
|
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/bootstrap.min.css">
|
|
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/font-awesome.min.css">
|
|
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/pygments/{{ PYGMENTS_STYLE|default('default') }}.min.css">
|
|
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/theme.css">
|
|
{% for stylesheet in THEME_CSS_OVERRIDES or () %}
|
|
{% if stylesheet|lower|truncate(4, True, '') == 'http' %}
|
|
<link rel="stylesheet" href="{{ stylesheet }}">
|
|
{% else %}
|
|
<link rel="stylesheet" href="{{ SITEURL + '/' + stylesheet }}">
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
{% include 'include/xml_feeds.html' %}
|
|
{% block head %}{% endblock %}
|
|
{% include 'include/analytics.html' %}
|
|
</head>
|
|
|
|
<body>
|
|
<header class="header">
|
|
<div class="container">
|
|
{% include 'include/header.html' %}
|
|
</div>
|
|
</header>
|
|
|
|
<div class="main">
|
|
<div class="container">
|
|
<h1>{% block page_header %}{% endblock %}</h1>
|
|
<hr>
|
|
{% block content %}{% endblock %}
|
|
</div>
|
|
</div>
|
|
|
|
<footer class="footer">
|
|
<div class="container">
|
|
{% include 'include/footer.html' %}
|
|
</div>
|
|
</footer>
|
|
</body>
|
|
|
|
</html>
|