leilukin-tumbleblog/themes/leilukin/layouts/default.twig

73 lines
2.3 KiB
Twig
Raw Normal View History

2024-06-20 14:10:42 +00:00
<!DOCTYPE html>
<html lang="{{ site.locale | lang_base }}" dir="{{ site.locale | text_direction }}">
<head>
<meta charset="UTF-8">
<title>
{%- block title -%}
{%- if pagination is not empty and pagination.page > 1 -%}
{{- "Page %d" | translate | format(pagination.page) -}}
{{- " | " -}}
{%- endif -%}
{%- if title is not empty -%}
{{- title | fix -}}
{{- " | " -}}
{%- endif -%}
{{- site.name | fix -}}
{%- endblock -%}
</title>
<meta name="description" content="{{ site.description }}">
<meta name="generator" content="Chyrp Lite">
<meta name="viewport" content="initial-scale=1.0">
2024-06-20 14:22:27 +00:00
<link rel="apple-touch-icon" sizes="180x180" href="{{ site.chyrp_url }}/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="{{ site.chyrp_url }}/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="{{ site.chyrp_url }}/favicon/favicon-16x16.png">
<link rel="manifest" href="{{ site.chyrp_url }}/favicon/site.webmanifest">
2024-06-20 14:10:42 +00:00
{{ theme.feeds() }}
{{ theme.stylesheets() }}
{{ theme.javascripts() }}
{{ trigger.call("end_head") }}
</head>
<body class="route_{{ route.action }}">
{% for notice in flash.notices %}
<div role="alert" class="ribbon flash notice">
{{ notice }}
</div>
{% endfor %}
{% for warning in flash.warnings %}
<div role="alert" class="ribbon flash warning">
{{ warning }}
</div>
{% endfor %}
{% for message in flash.messages %}
<div role="alert" class="ribbon flash message">
{{ message }}
</div>
{% endfor %}
<!-- Sidebar -->
{% include "content/sidebar.twig" %}
{% if posts.paginated is defined and posts.prev_page() %}
<!-- Navigation -->
2024-06-22 05:17:23 +00:00
<nav role="navigation" class="prev traversal">{{ posts.prev_link("Newer posts" | translate) }}</nav>
2024-06-20 14:10:42 +00:00
{% endif %}
<!-- Content -->
2024-06-22 05:17:23 +00:00
<main id="main" role="main">
2024-06-20 14:10:42 +00:00
{% block content %}{% endblock %}
2024-06-22 05:17:23 +00:00
</main>
2024-06-20 14:10:42 +00:00
{% if posts.paginated is defined and posts.next_page() %}
<!-- Navigation -->
2024-06-22 05:17:23 +00:00
<nav role="navigation" class="next traversal">{{ posts.next_link("Older posts" | translate) }}</nav>
2024-06-20 14:10:42 +00:00
{% endif %}
{{ trigger.call("end_content") }}
</body>
<!-- Queries: {{ sql_queries }} | Load Time: {{ theme.load_time() }} -->
{% if debug %}
<!--
{% for caller in sql_debug %}
{{ caller.query | replace({"\t": " "}) | fix }}
{{ "Called from %s on line %d at %s seconds." | translate | format(caller.file, caller.line, caller.time) }}
{% endfor %}
-->
{% endif %}
</html>