mirror of
https://github.com/pawroman/zola-theme-terminimal.git
synced 2025-04-11 19:47:11 +02:00
134 lines
5.3 KiB
HTML
134 lines
5.3 KiB
HTML
{% import "macros/date.html" as date_macros -%}
|
|
{% import "macros/head.html" as head_macros -%}
|
|
{% import "macros/menu.html" as menu_macros -%}
|
|
{% import "macros/post.html" as post_macros -%}
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="{%- if config.default_language -%}{{ config.default_language }}{%- else -%}en{%- endif -%}">
|
|
|
|
<head>
|
|
<title>{%- block title %}{{ config.title }}{% endblock title -%}</title>
|
|
{{ head_macros::head(config=config) }}
|
|
|
|
{%- if config.generate_rss %}
|
|
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ get_url(path="rss.xml") | safe }}">
|
|
{% endif -%}
|
|
|
|
{%- if config.extra.favicon %}
|
|
<link rel="shortcut icon" type="{{ config.extra.favicon_mimetype | default(value="image/x-icon") }}" href="{{ config.extra.favicon | safe }}">
|
|
{% endif -%}
|
|
|
|
{%- block extra_head %}
|
|
{% endblock extra_head -%}
|
|
<link rel="icon" href="https://raw.githubusercontent.com/kylejcarlton/zola-theme-terminimal/master/img/favicon.png">
|
|
<link rel="apple-touch-icon" href="https://raw.githubusercontent.com/kylejcarlton/zola-theme-terminimal/master/img/apple-touch-icon.png">
|
|
<script src="https://kit.fontawesome.com/75d5a1ca9a.js" crossorigin="anonymous"></script>
|
|
<!-- 24-Dec-21 Enabled Web Analytics from Page Settings -->
|
|
<!-- 02-Jan-22 Reguild to upate copyright year -->
|
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
|
<script async src="https://www.googletagmanager.com/gtag/js?id=G-NHKSPF45BP"></script>
|
|
<script>
|
|
window.dataLayer = window.dataLayer || [];
|
|
function gtag(){dataLayer.push(arguments);}
|
|
gtag('js', new Date());
|
|
|
|
gtag('config', 'G-NHKSPF45BP');
|
|
</script>
|
|
</head>
|
|
|
|
<body class="">
|
|
<div class="container">
|
|
{% block header %}
|
|
<header class="header">
|
|
<div class="header__inner">
|
|
<div class="header__logo">
|
|
{%- if config.logo_home_link %}
|
|
{% set logo_link = config.logo_home_link %}
|
|
{% else %}
|
|
{% set logo_link = config.base_url %}
|
|
{% endif -%}
|
|
<a href="{{ logo_link | safe }}" style="text-decoration: none;">
|
|
<div class="logo">
|
|
{%- if config.extra.logo_text %}
|
|
<i class="fas fa-laptop-code"></i>
|
|
|
|
{{ config.extra.logo_text }}
|
|
{% else %}
|
|
Terminimal theme
|
|
{% endif -%}
|
|
</div>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
{{ menu_macros::menu(config=config, current_path=current_path) }}
|
|
</header>
|
|
{% endblock header %}
|
|
|
|
<div class="content">
|
|
{% block content %}
|
|
<div class="posts">
|
|
{%- if paginator %}
|
|
{%- set show_pages = paginator.pages -%}
|
|
{% else %}
|
|
{%- set show_pages = section.pages -%}
|
|
{% endif -%}
|
|
|
|
{%- for page in show_pages %}
|
|
<div class="post on-list">
|
|
{{ post_macros::header(page=page) }}
|
|
{{ post_macros::content(page=page, summary=true) }}
|
|
</div>
|
|
{% endfor -%}
|
|
<div class="pagination">
|
|
<div class="pagination__buttons">
|
|
{%- if paginator.previous %}
|
|
<span class="button previous">
|
|
<a href="{{ paginator.previous | safe }}">
|
|
<span class="button__icon">←</span>
|
|
<span class="button__text">Newer posts</span>
|
|
</a>
|
|
</span>
|
|
{% endif -%}
|
|
{%- if paginator.next %}
|
|
<span class="button next">
|
|
<a href="{{ paginator.next | safe }}">
|
|
<span class="button__text">Older posts</span>
|
|
<span class="button__icon">→</span>
|
|
</a>
|
|
</span>
|
|
{% endif -%}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock content %}
|
|
</div>
|
|
|
|
{% block footer %}
|
|
<footer class="footer">
|
|
<div class="footer__inner">
|
|
{%- if config.extra.copyright_html %}
|
|
<div class="copyright copyright--user">{{ config.extra.copyright_html | safe }}</div>
|
|
{% else %}
|
|
<div class="copyright">
|
|
{%- if config.extra.author %}
|
|
<span>© 2014 -{{ date_macros::now_year() }} {{ config.extra.author }}</span>
|
|
{% else %}
|
|
<span>© {{ date_macros::now_year() }} Powered by <a href="https://www.getzola.org/">Zola</a></span>
|
|
{% endif -%}
|
|
|
|
<span class="copyright-theme">
|
|
<span class="copyright-theme-sep">:: </span>
|
|
<a href="https://www.getzola.org/">Zola</a> + <a href="https://github.com/pawroman/zola-theme-terminimal/">Terminimal Theme</a> <i class="fas fa-code-branch"></i> + <a href="https://fontawesome.com">Font Awesome</a>
|
|
</span>
|
|
</div>
|
|
{% endif -%}
|
|
</div>
|
|
</footer>
|
|
{% endblock footer %}
|
|
|
|
</div>
|
|
</body>
|
|
|
|
</html>
|