Zulma-Theme/templates/index.html

93 lines
2.7 KiB
HTML
Raw Normal View History

2019-05-03 23:36:05 +00:00
{% import "post_macros.html" as post_macros %}
{% import "index_macros.html" as index_macros %}
<!DOCTYPE html>
<html>
<head>
{% block head %}
2019-05-03 23:36:05 +00:00
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
2019-05-03 23:36:05 +00:00
<!-- Enable responsiveness on mobile devices-->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
2019-05-03 23:36:05 +00:00
2019-05-05 17:32:32 +00:00
<title>
{% block title %}{{ config.title }}{% endblock title %}
</title>
2019-05-03 23:36:05 +00:00
{% block css %}
{{ index_macros::css() }}
{% endblock css %}
2019-05-03 23:36:05 +00:00
{% if config.generate_rss %}
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ get_url(path="rss.xml") | safe }}">
2019-05-03 23:36:05 +00:00
{% endif %}
{% block js %}
{% if config.build_search_index %}
<script defer type="text/javascript" src="{{ get_url(path="elasticlunr.min.js") }}"></script>
<script defer type="text/javascript" src="{{ get_url(path="search_index.en.js") }}"></script>
{% if config.extra.zulma_allow_theme_selection %}
<script type="text/javascript" src="{{ get_url(path="js/switchcss.js") }}"></script>
{% endif %}
{% endif %}
{% endblock js %}
2019-05-03 23:36:05 +00:00
{% block extra_head %}
{% endblock extra_head %}
<noscript>
<style>
.navbar-menu {
display: block;
}
.js-only {
display: none;
}
</style>
</noscript>
{% endblock head %}
2019-05-03 23:36:05 +00:00
</head>
<body>
{% block content %}
<!-- START NAV -->
{% block header %}
{{ index_macros::navbar() }}
{% endblock header %}
<!-- END NAV -->
<main class="index">
<!-- START HERO TITLE -->
{% if config.extra.zulma_title %}
{{ index_macros::hero(title=config.extra.zulma_title) }}
{% endif %}
<!-- END HERO TITLE -->
<div class="container">
<!-- START ARTICLE FEED -->
{% if paginator %}
{{ index_macros::list_articles(pages=paginator.pages) }}
{% else %}
{{ index_macros::list_articles(pages=section.pages) }}
{% endif %}
<!-- END ARTICLE FEED -->
<!-- START PAGINATION -->
{% if paginator %}
{{ index_macros::paginate(paginator=paginator) }}
{% endif %}
<!-- END PAGINATION -->
</div>
</main>
{% endblock content %}
{{ index_macros::footer() }}
<script type="text/javascript" src="{{ get_url(path="js/bulma.js") }}"></script>
{% if config.build_search_index %}
<script type="text/javascript" src="{{ get_url(path="js/search.js") }}"></script>
{% endif %}
2019-05-03 23:36:05 +00:00
</body>
</html>