TinyLifeWeb/web/_layouts/default.html

69 lines
2.8 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
{% if page.summary %}
{% assign description = page.summary %}
{% elsif page.excerpt %}
{% assign description = page.excerpt | strip_html | strip_newlines %}
{% endif %}
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ page.title }}</title>
<meta name="author" content="Ellpeck Games">
{% if description %}
<meta name="description" content="{{ description }}">
{% endif %}
<meta name="keywords" content="Ellpeck, Ellpeck Games, Tiny Life, Steam, itch, itch.io, Sandbox, Life Simulator, Simulator, Sim, Isometric, Pixelart, Pixel Art, Retro">
<meta property="og:title" content="{{ page.title }}">
{% if description %}
<meta property="og:description" content="{{ description }}">
{% endif %}
<meta property="og:image" content="https://tinylifegame.com/media/icon.png">
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@Ellpeck">
<meta name="twitter:creator" content="@Ellpeck">
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js"></script>
<script>
const darkStorage = localStorage.getItem("dark");
const darkTheme = darkStorage === null ? window.matchMedia("(prefers-color-scheme: dark)").matches : darkStorage === "true";
</script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato&display=swap">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=JetBrains+Mono&display=swap">
<link rel="stylesheet" href="https://fonts.cdnfonts.com/css/cadman">
<link rel="stylesheet" href="/style.css">
<link rel="icon" href="/favicon.ico">
</head>
<body data-spy="scroll" data-target="#navbar" data-offset="80">
<script>
if (darkTheme)
$("body").addClass("dark-mode");
</script>
{% include navbar.html %}
{{ content }}
<div class="footer bg-light">
<script>
if (darkTheme) {
let footer = $(".footer");
footer.removeClass("bg-light");
footer.addClass("bg-dark");
}
</script>
<a href="https://github.com/Ellpeck/TinyLifeWeb">&copy; 2021-2023</a> <a href="https://games.ellpeck.de">Ellpeck Games</a>, <a href="https://tophat.studio/">Top Hat Studios</a> &ndash; <a href="https://ellpeck.de/impressum">Impressum</a> &ndash; <a href="https://ellpeck.de/privacy">Privacy</a> &ndash; <a href="https://status.ellpeck.de">Status</a>
</div>
</body>
</html>