work.suroh.tk/_includes/base.njk

48 lines
1.1 KiB
Plaintext

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>{{ site.siteName }}</title>
<meta name="generator" content="{{ site.generator }}">
<!-- styles -->
<link rel="stylesheet" href="/assets/css/main.css">
<!-- javascript -->
<script src="/assets/js/script.js" type="module"></script>
<!-- tracking -->
<script async defer data-website-id="f24934aa-ee11-49ee-993f-a64b8df6a01c"
src="https://analytics.suroh.tk/umami.js"></script>
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
</head>
<body>
<div id="wrapper">
{% include 'nav.njk' %}
{% block content %}{% endblock %}
{% block footer %}{% endblock %}
</div>
<script>
if (window.netlifyIdentity) {
window.netlifyIdentity.on("init", user => {
if (!user) {
window.netlifyIdentity.on("login", () => {
document.location.href = "/admin/";
});
}
});
}
</script>
</body>