sites/tobias.raayoni-last.com/raayoni/templates/base.html

40 lines
1.6 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
<html lang="{{ DEFAULT_LANG }}"{% if THEME_DEFAULT %} data-theme="{{ THEME_DEFAULT }}"{% endif %}>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %}{{ SITENAME }}{% endblock %}</title>
{% block meta %}{% endblock %}
{# Applied before first paint: without this the wrong ground colour flashes. #}
<script>
(function(){try{var t=localStorage.getItem("theme");
if(t){document.documentElement.setAttribute("data-theme",t);}}catch(e){}})();
</script>
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/style.css">
2026-10-06 08:51:52 +03:00
<link rel="icon" type="image/svg+xml" href="{{ SITEURL }}/theme/img/favicon.svg">
<link rel="icon" type="image/png" href="{{ SITEURL }}/theme/img/favicon.png">
{% if FEED_ALL_ATOM %}
<link rel="alternate" type="application/atom+xml" href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" title="{{ SITENAME }}">
{% endif %}
</head>
<body>
<nav class="bar">
<a class="me" href="{{ SITEURL }}/">{% include "_logo.html" %}<span>{{ SITENAME }}</span></a>
{% for title, link in MENUITEMS %}<a href="{{ SITEURL }}{{ link }}">{{ title }}</a>
{% endfor %}
<span class="sep">·</span>
<button type="button" data-theme-toggle>dark</button>
</nav>
{% block content %}{% endblock %}
<footer>
{{ SITENAME }}
{% for title, link in MENUITEMS %} · <a href="{{ SITEURL }}{{ link }}">{{ title }}</a>{% endfor %}
</footer>
<script src="{{ SITEURL }}/theme/js/muuri.min.js"></script>
<script src="{{ SITEURL }}/theme/js/site.js"></script>
</body>
</html>