iamkonstantin/iamkonstantin_web/templates/base.html

85 lines
2.8 KiB
HTML
Raw Normal View History

2024-03-15 07:26:20 +01:00
{% load static wagtailcore_tags tailwind_tags %}
2024-02-29 18:51:43 +01:00
<!DOCTYPE html>
<html lang="en" class="h-full antialiased">
<head>
<meta charset="utf-8"/>
2024-11-10 14:26:21 +01:00
<meta name="fediverse:creator" content="@konstantin@toot.iamkonstantin.eu" />
2024-03-23 16:50:24 +01:00
{% include "wagtailseo/meta.html" %}
<title>
{% block title %}
2024-02-29 18:51:43 +01:00
{% if page.seo_title %}{{ page.seo_title }}{% else %}{{ page.title }}{% endif %}
{% endblock %}
{% block title_suffix %}
2024-02-29 18:51:43 +01:00
{% wagtail_site as current_site %}
{% if current_site and current_site.site_name %}- {{ current_site.site_name }}{% endif %}
{% endblock %}
</title>
{% if page.search_description %}
<meta name="description" content="{{ page.search_description }}"/>
{% endif %}
2024-03-15 07:26:20 +01:00
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
{% tailwind_css %}
{# Force all links in the live preview panel to be opened in a new tab #}
{% if request.in_preview_panel %}
2024-02-29 18:51:43 +01:00
<base target="_blank">
{% endif %}
<meta name="color-scheme" content="light dark">
<link rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🍩</text></svg>"/>
2024-02-29 18:51:43 +01:00
{# Global stylesheets #}
<link rel="stylesheet" type="text/css" href="{% static 'css/iamkonstantin_web.css' %}">
2024-02-29 18:51:43 +01:00
2024-03-26 18:08:42 +01:00
<link title="Konstantin's Blog" type="application/atom+xml" rel="alternate" href="{% url 'blog_feed' %}">
{% block extra_css %}
2024-02-29 18:51:43 +01:00
{# Override this in templates to add extra stylesheets #}
{% endblock %}
2024-04-10 18:51:49 +02:00
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"url": "https://iamkonstantin.eu/",
"potentialAction": {
"@type": "SearchAction",
"target": {
"@type": "EntryPoint",
"urlTemplate": "https://iamkonstantin.eu/search/?query={search_term_string}"
},
"query-input": "required name=search_term_string"
}
}
</script>
</head>
2024-02-29 18:51:43 +01:00
<body class="flex h-full bg-zinc-50 dark:bg-black {% block body_class %}{% endblock %}">
2024-02-29 18:51:43 +01:00
2024-03-18 17:36:00 +01:00
<div class="relative w-full sm:px-8">
{% include "includes/header.html" %}
2024-02-29 18:51:43 +01:00
<main id="main" class="mx-auto max-w-5xl px-0 md:px-4 lg:px-8">
{% block content %}{% endblock %}
</main>
2024-02-29 18:51:43 +01:00
{% include "includes/footer.html" %}
</div>
{# Global javascript #}
<script type="text/javascript" src="{% static 'js/iamkonstantin_web.js' %}"></script>
{% block extra_js %}
{# Override this in templates to add extra javascript #}
{% endblock %}
2024-03-23 16:50:24 +01:00
{% include "wagtailseo/struct_data.html" %}
</body>
2024-02-29 18:51:43 +01:00
</html>