mirror of
https://github.com/nairobilug/pelican-alchemy.git
synced 2024-12-30 12:15:06 +01:00
Fixes #64, #65 Now users who wish to use Bootstrap dynamic elements (like dropdown menus) can enable JavaScript either by including required scripts into their static assets or by referencing their CDN URLs. By default Alchemy uses no JavaScript - that has not changed.
68 lines
2.2 KiB
HTML
68 lines
2.2 KiB
HTML
{%- macro url(destination) -%}
|
|
{%- if destination|lower|truncate(4, True, '') == 'http' or not destination -%}
|
|
{{ destination }}
|
|
{%- elif destination|first == '/' -%}
|
|
{{ SITEURL + destination }}
|
|
{%- else -%}
|
|
{{ SITEURL + '/' + destination }}
|
|
{%- endif -%}
|
|
{%- endmacro -%}
|
|
<!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="{{ url(BOOTSTRAP_CSS or '/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 () %}
|
|
<link rel="stylesheet" href="{{ url(stylesheet) }}">
|
|
{% 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>
|
|
|
|
{% for script in THEME_JS_OVERRIDES or () %}
|
|
<script type="text/javascript" src="{{ url(script) }}" crossorigin="anonymous"></script>
|
|
{% endfor %}
|
|
</body>
|
|
|
|
</html>
|