zola-inky-fork/templates/base.html

140 lines
5.2 KiB
HTML
Raw Permalink Normal View History

2023-02-01 17:58:59 +00:00
{% import "macros/head.html" as head -%}
{% import "macros/opengraph.html" as social -%}
{% import "macros/hooks.html" as hooks -%}
{% import "macros/images.html" as images -%}
<!DOCTYPE html>
<html lang="en" prefix="og: https://ogp.me/ns#">
<head>
{%- block general_meta -%}
{{ head::general_meta() }}
{%- endblock general_meta -%}
{%- block og_preview -%}
{{ social::og_preview() }}
{%-endblock og_preview -%}
2023-02-20 11:24:42 +00:00
{% block rss -%}
2023-02-01 17:58:59 +00:00
<link rel="alternate"
type="application/rss+xml"
title="{{config.title}}"
2023-02-20 11:24:42 +00:00
href="{{ get_url(path='atom.xml',trailing_slash=false)|safe}}">
{% endblock rss -%}
{% if config.extra.google_analytics_tag_id -%}
<!-- Google Analytics tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ config.extra.google_analytics_tag_id }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{ config.extra.google_analytics_tag_id }}');
</script>
{% endif -%}
2023-02-01 17:58:59 +00:00
<link rel="stylesheet"
href="{{ get_url(path='base.css',trailing_slash=false)|safe}}">
<link rel="stylesheet"
href="{{ get_url(path='fork-awesome/fork-awesome.css',trailing_slash=false)|safe}}">
2023-02-01 17:58:59 +00:00
</head>
<body>
<header>
2023-02-20 11:24:42 +00:00
{% if config.extra.avatar -%}
2023-02-01 17:58:59 +00:00
<div class="avatar">
<a href="/">
2023-02-12 19:09:36 +00:00
{{ images::responsive_image(path="", src=config.extra.avatar, default_size=128, sizes=[64,128,256], alt=config.title ) }}
2023-02-01 17:58:59 +00:00
</a>
</div>
2023-02-20 11:24:42 +00:00
{% endif -%}
2023-02-01 17:58:59 +00:00
<a class="site-name"
href="/">
<h1>{{ config.title }}</h1>
</a>
<div class="site-description">
<p>{{ config.description }}</p>
</div>
<nav>
<div class="links">
2023-02-20 11:24:42 +00:00
{% for menu_link in config.extra.menu_links -%}
{% set link_url = menu_link.url | replace(from="$BASE_URL", to=config.base_url) -%}
2023-02-01 17:58:59 +00:00
<a {% if current_url and current_url==link_url %}class="active" {% endif %}
href="{{ link_url | safe}} ">{{menu_link.name}}</a>
2023-02-20 11:24:42 +00:00
{% endfor -%}
2023-02-01 17:58:59 +00:00
</div>
</nav>
</header>
<article>
2023-02-20 11:24:42 +00:00
{% block content -%}
{% endblock -%}
2023-02-01 17:58:59 +00:00
</article>
<footer>
2023-12-09 15:21:50 +00:00
{% block footer_left -%}
2023-02-01 17:58:59 +00:00
<div class="social">
<ul>
{# Github #}
2023-02-20 11:24:42 +00:00
{% if config.extra.link_github_username -%}
2023-02-01 17:58:59 +00:00
<li>
<a href="https://github.com/{{ config.extra.link_github_username }}"
title="Github" rel="me"><i class="fa fa-github"></i></a>
2023-02-01 17:58:59 +00:00
</li>
2023-02-20 11:24:42 +00:00
{% endif -%}
2023-02-01 17:58:59 +00:00
{# Mastadon #}
2023-02-20 11:24:42 +00:00
{% if config.extra.link_mastodon_url -%}
2023-02-01 17:58:59 +00:00
<li>
<a href="{{ config.extra.link_mastodon_url }}"
title="Mastodon" rel="me"><i class="fa fa-mastodon"></i></a>
2023-02-01 17:58:59 +00:00
</li>
2023-02-20 11:24:42 +00:00
{% endif -%}
2023-02-01 17:58:59 +00:00
{# Twitter #}
2023-02-20 11:24:42 +00:00
{% if config.extra.link_twitter_username -%}
2023-02-01 17:58:59 +00:00
<li>
<a href="https://twitter.com/{{ config.extra.link_twitter_username }}"
title="Twitter"
rel="me"><i class="fa fa-twitter"></i></a>
2023-02-01 17:58:59 +00:00
</li>
2023-02-20 11:24:42 +00:00
{% endif -%}
2023-02-01 17:58:59 +00:00
{# Instagram #}
2023-02-20 11:24:42 +00:00
{% if config.extra.link_instagram_username -%}
2023-02-01 17:58:59 +00:00
<li>
<a href="https://www.instagram.com/jimmyff_art/{{ config.extra.link_instagram_username }}"
title="Instagram"
rel="me"><i class="fa fa-instagram"></i></a>
2023-02-01 17:58:59 +00:00
</li>
2023-02-20 11:24:42 +00:00
{% endif -%}
2023-02-01 17:58:59 +00:00
{# Medium #}
2023-02-20 11:24:42 +00:00
{% if config.extra.link_medium_username -%}
2023-02-01 17:58:59 +00:00
<li>
<a href="https://medium.com/@{{ config.extra.link_medium_username }}"
title="Medium"
rel="me"><i class="fa fa-medium"></i></a>
2023-02-01 17:58:59 +00:00
</li>
2023-02-20 11:24:42 +00:00
{% endif -%}
2023-02-01 17:58:59 +00:00
{# RSS feed #}
<li>
<a href="{{ get_url(path='atom.xml',trailing_slash=false)|safe }}"
title="{{config.title}}"><i class="fa fa-rss"></i></a>
2023-02-01 17:58:59 +00:00
</li>
</ul>
2023-12-09 15:21:50 +00:00
{% endblock footer_left -%}
2023-02-01 17:58:59 +00:00
</div>
2023-12-09 15:21:50 +00:00
<p>
{% block footer_center -%}
{% endblock footer_center -%}
</p>
<p>
{% block footer_right -%}
© {{ config.title }} {{ now() | date(format="%Y") }}
2023-02-01 17:58:59 +00:00
{# If you remove the powered by information, it would be appreciated if
you could add information & links somewhere else on your site to credit
those that have created your tools. #}
{% if config.extra.disable_powered_by and config.extra.disable_powered_by == true %}{% else %}<br>Powered by <a target="_blank" href="https://getzola.org/">Zola</a>. Theme: <a target="_blank" href="https://github.com/jimmyff/zola-inky">Inky</a>.{% endif %}
2023-12-09 15:21:50 +00:00
{% endblock footer_right -%}
2023-02-01 17:58:59 +00:00
</p>
</footer>
{% block body_end -%}
{% endblock body_end -%}
2023-02-01 17:58:59 +00:00
</body>
2023-12-09 15:21:50 +00:00
</html>