after-dark/templates/index.html

90 lines
4.1 KiB
HTML
Raw Normal View History

2017-11-03 09:31:31 +00:00
{% import "post_macros.html" as post_macros %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<!-- Enable responsiveness on mobile devices-->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<title>{% block title %}{{ config.title }}{% endblock title %}</title>
2020-05-26 16:56:27 +00:00
{% if config.generate_feed %}
2020-05-26 17:00:01 +00:00
<link rel="alternate" type={% if config.feed_filename == "atom.xml" %}"application/atom+xml"{% else %}"application/rss+xml"{% endif %} title="RSS" href="{{ get_url(path=config.feed_filename) | safe }}">
2017-11-03 09:31:31 +00:00
{% endif %}
{% block css %}
2018-09-21 06:44:40 +00:00
<link rel="stylesheet" href="{{ get_url(path="site.css", trailing_slash=false) | safe }}">
2020-08-31 19:33:36 +00:00
{% if config.extra.katex_enable %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/katex.min.css" integrity="sha384-9eLZqc9ds8eNjO3TmqPeYcDj8n+Qfa4nuSiGYa6DjLNcv9BtN69ZIulL9+8CqC9Y" crossorigin="anonymous">
{% endif %}
2017-11-03 09:31:31 +00:00
{% endblock css %}
2020-08-31 19:33:36 +00:00
{% block js %}
{% if config.extra.katex_enable %}
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/katex.min.js" integrity="sha384-K3vbOmF2BtaVai+Qk37uypf7VrgBubhQreNQe9aGsz9lB63dIFiQVlJbr92dw2Lx" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/contrib/mathtex-script-type.min.js" integrity="sha384-zWYbd0NBwgTsgIdFKVprSfTh1mbMPe5Hz1X3yY4Sd1h/K1cQoUe36OGwAGz/PcDy" crossorigin="anonymous"></script>
{% if config.extra.katex_auto_render %}
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/contrib/auto-render.min.js" integrity="sha384-kmZOZB5ObwgQnS/DuDg6TScgOiWWBiVt0plIRkZCmE6rDZGrEOQeHM5PcHi+nyqe" crossorigin="anonymous"
onload="renderMathInElement(document.body);"></script>
{% endif %}
{% endif %}
{% endblock js %}
2017-11-03 09:31:31 +00:00
{% block extra_head %}
{% endblock extra_head %}
</head>
<body class="hack dark main container">
{% block content %}
2017-11-16 18:03:32 +00:00
{% block header %}
{% if config.extra.after_dark_menu %}
<header>
<nav itemscope itemtype="http://schema.org/SiteNavigationElement">
{% for item in config.extra.after_dark_menu %}
<a itemprop="url"
class="{% if item.url | replace(from="$BASE_URL", to=config.base_url) == current_url %}active{% endif %}"
2018-09-21 06:44:40 +00:00
href="{{ item.url | safe | replace(from="$BASE_URL", to=config.base_url) }}">
2017-11-16 18:03:32 +00:00
<span itemprop="name">{{ item.name }}
</span></a>
{% endfor %}
</nav>
</header>
{% endif %}
{% endblock header %}
2017-11-03 09:31:31 +00:00
<main>
{% if config.extra.after_dark_title %}
<header>
<h1>{{ config.extra.after_dark_title }}</h1>
</header>
{% endif %}
2020-03-13 22:21:22 +00:00
{% if section.content %}
<div>
{{ section.content | safe }}
</div>
{% endif %}
2017-11-03 09:31:31 +00:00
{% for page in paginator.pages %}
2017-11-16 18:03:32 +00:00
{{ post_macros::page_in_list(page=page) }}
2017-11-03 09:31:31 +00:00
{% endfor %}
<nav>
<p>
{% if paginator.previous %}
<a href="{{ paginator.previous }}">&laquo; Previous</a> |
{% endif %}
2018-11-14 18:58:02 +00:00
<span>Page {{ paginator.current_index }} of {{ paginator.number_pagers }}</span>
2017-11-03 09:31:31 +00:00
{% if paginator.next %}
| <a href="{{ paginator.next }}">Next &raquo;</a>
{% endif %}
</p>
</nav>
</main>
{% endblock content %}
</body>
</html>