You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
103 lines
3.8 KiB
HTML
103 lines
3.8 KiB
HTML
{% import "macros.html" as macro %}
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="{% if page.extra.lang %}{{ page.extra.lang }}{% else %}{{ lang }}{% endif %}" itemscope
|
|
itemtype="http://schema.org/Blog">
|
|
|
|
<head>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
|
|
<link rel="stylesheet" href="{{ get_url(path='site.css', trailing_slash=false) | safe }}">
|
|
<title>{% block title %}{{ config.title }}{% endblock title %}</title>
|
|
|
|
{% if config.generate_rss %}
|
|
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ get_url(path='rss.xml') }}">
|
|
{% endif %}
|
|
|
|
<meta name="description" itemprop="about" content="{{ config.description }}">
|
|
<meta name="keywords" itemprop="keywords" content="{{ config.extra.keywords }}">
|
|
<meta name="author" itemprop="author" content="{{ config.extra.author }}">
|
|
<meta itemprop="headline" content="{{ config.title }}">
|
|
<meta itemprop="copyrightYear" content="{{ config.extra.year }}">
|
|
|
|
<link rel="icon" href="{{ get_url(path='images/favicon.ico') }}" type="image/x-icon">
|
|
<link rel="manifest" href="{{ get_url(path='images/manifest.json') }}">
|
|
<meta name="msapplication-TileColor" content="{{ config.extra.theme_color }}">
|
|
<meta name="theme-color" content="{{ config.extra.theme_color }}">
|
|
|
|
<meta property="og:title" content="{% block ogtitle %}{{ config.title }}{% endblock ogtitle %}">
|
|
<meta property="og:description" content="{% block ogdesc %}{{ config.description }}{% endblock ogdesc %}">
|
|
<meta property="og:url" content="{% block ogurl %}{{ config.base_url }}{% endblock ogurl%}">
|
|
<meta property="og:site_name" content="{{ config.title }}">
|
|
{% if config.extra.image %}
|
|
<meta property="og:image" content="{% block ogimg %}{{ config.extra.image }}{% endblock ogimg %}">
|
|
{% endif %}
|
|
<meta name="twitter:card" content="summary">
|
|
{% if config.extra.twitter_user %}
|
|
<meta name="twitter:site" content="{{ config.extra.twitter_user }}">
|
|
<meta name="twitter:creator" content="{{ config.extra.twitter_user }}">
|
|
<meta name="twitter:image:alt" content="{% block ogaltimg %}{{ config.title }}{% endblock ogaltimg %}">
|
|
{% endif %}
|
|
</head>
|
|
|
|
<body>
|
|
<main class="container">
|
|
{% block breadcrumb %}{% endblock breadcrumb %}
|
|
{% block header %}
|
|
<header>
|
|
<h1>{{ config.title }} <small>{{ config.description }}</small></h1>
|
|
</header>
|
|
{% endblock header %}
|
|
{% block meta %}{% endblock meta %}
|
|
|
|
<div class="flex-row gap">
|
|
|
|
<div class="w-3/4">
|
|
{% block main %}
|
|
{% for page in paginator.pages %}
|
|
{{ macro::post_max(page=page) }}
|
|
{% endfor %}
|
|
|
|
{{ macro::paginator(ref=paginator, extra=config.extra) }}
|
|
{% endblock main %}
|
|
</div>
|
|
|
|
<aside class="w-1/4">
|
|
{% block sidebar %}
|
|
|
|
{% for page in config.extra.sidebars %}
|
|
<nav class="box">
|
|
<header>{{ page.title }}</header>
|
|
<menu>
|
|
{% for item in page.items %}
|
|
<li class="{% if item.path == current_path %}active{% endif %}">
|
|
{% if page.internal %}
|
|
<a href="{{ item.path }}">{{ item.name }}</a>
|
|
{% else %}
|
|
<a href="{{ item.path }}" target="_blank" rel="noopener">{{ item.name }}</a>
|
|
{% endif %}
|
|
</li>
|
|
{% endfor %}
|
|
</menu>
|
|
</nav>
|
|
{% endfor %}
|
|
|
|
{% endblock sidebar %}
|
|
</aside>
|
|
|
|
</div> <!-- row -->
|
|
</main>
|
|
|
|
<footer class="container">
|
|
<hr class="soften">
|
|
<p>
|
|
{{ config.extra.year }} ©
|
|
<a href="{{ config.base_url }}">{{ config.extra.author }}</a>
|
|
|
|
|
Built on <a href="https://getzola.org" rel="noopener" target="_blank">Zola</a>
|
|
</p>
|
|
</footer>
|
|
</body>
|
|
|
|
</html> |