1
0
Fork 0
yinghong-massage.de/templates/base.html

62 lines
2.4 KiB
HTML
Raw Normal View History

2022-10-24 14:35:18 +00:00
<!DOCTYPE html>
2022-12-17 17:12:50 +00:00
<html lang="de">
2022-10-24 14:35:18 +00:00
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>
2023-05-30 14:10:24 +00:00
{%- block title -%}
{%- if page.title -%}
{{- page.title -}}
{%- elif section.title -%}
{{- section.title -}}
{%- else -%}
{{- config.title -}}
{%- endif -%}
{%- endblock -%}
2022-10-24 14:35:18 +00:00
</title>
2023-05-30 14:10:24 +00:00
<meta name="description"
content="{%- block description -%}{%- if page.description -%}{{- page.description -}}{%- elif section.description -%}{{- section.description -}}{%- else -%}{{- config.description -}}{%- endif -%}{%- endblock -%}">
2022-10-24 14:35:18 +00:00
2023-05-30 14:10:24 +00:00
<link rel="icon"
type="image/x-icon"
href="{{ get_url(path='images/logo.svg') | safe }}" />
2022-11-21 12:03:46 +00:00
2023-05-30 14:10:24 +00:00
<link href="{{ get_url(path='main.css') | safe }}?v={{ now(timestamp=true) }}"
rel="stylesheet" />
2022-10-24 23:11:48 +00:00
{% block styles %}{% endblock %}
2022-10-24 14:35:18 +00:00
</head>
2023-05-30 14:10:24 +00:00
<body class="flex flex-col p-3 mx-auto max-w-screen-lg min-h-screen text-lg">
<header class="flex gap-x-2 items-center px-5 mb-3 text-base font-light bg-gray-100 rounded-full sm:gap-x-4">
<a class="p-0.5 transition duration-500 hover:scale-110"
href="{{ get_url(path='/') | safe }}">
<img class="object-contain w-14 h-14 rounded"
src="{{ get_url(path='images/logo.svg') | safe }}" />
</a>
<nav class="flex gap-x-2 items-center sm:gap-x-4">
{% for menu_item in config.extra.menu_items %}
<a class="p-1 no-underline transition duration-500 hover:scale-105"
href="{{ menu_item.url | safe }}">{{ menu_item.name }}</a>
{% endfor %}
</nav>
</header>
<main class="leading-relaxed">
{% block content %}{% endblock %}
2023-05-30 14:10:24 +00:00
</main>
<footer class="pt-6 pb-2 mt-auto">
<nav class="flex flex-col gap-y-2 justify-around py-2 text-center bg-gray-100 rounded sm:flex-row sm:rounded-full">
{% for footer_item in config.extra.footer_items %}
<a class="text-sm no-underline" href="{{ footer_item.url | safe }}">{{ footer_item.name }}</a>
{% endfor %}
</nav>
2022-10-24 14:35:18 +00:00
</footer>
{% block scripts %}{% endblock %}
2022-10-24 14:35:18 +00:00
</body>
</html>