94 lines
No EOL
4.4 KiB
Text
94 lines
No EOL
4.4 KiB
Text
{%- assign updateTime = "" -%}
|
|
{%- if updated == "now" -%}
|
|
{%- assign updateTime = 'now' | date: "%B %-d, %l:%M %P", "America/Los_Angeles" -%}
|
|
{%- elsif page.updated -%}
|
|
{%- assign updateTime = page.updated | date: "%B %-d, %l:%M %P", "America/Los_Angeles" -%}
|
|
{%- endif -%}
|
|
<!doctype html>
|
|
<html lang="{{ globals.lang }}">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<meta name="color-scheme" content="light dark" />
|
|
<link rel="preload" href="/assets/fonts/ml.woff2" as="font" type="font/woff2" crossorigin="anonymous" />
|
|
<link rel="preload" href="/assets/fonts/mlb.woff2" as="font" type="font/woff2" crossorigin="anonymous" />
|
|
<link rel="stylesheet" href="/assets/styles/index.css?v={% appVersion %}" type="text/css" />
|
|
{% render "metadata.liquid",
|
|
globals:globals,
|
|
schema:schema,
|
|
title:title,
|
|
page:page,
|
|
post:post,
|
|
year:year,
|
|
music:music,
|
|
books:books,
|
|
featuredMovie:featuredMovie,
|
|
featuredShow:featuredShow,
|
|
featuredBook:featuredBook,
|
|
%}
|
|
<meta name="theme-color" content="{{ globals.theme_color }}" />
|
|
<meta name="fediverse:creator" content="{{ globals.mastodon }}" />
|
|
<meta name="generator" content="Eleventy" />
|
|
<meta name="robots" content="noai, noimageai" />
|
|
<link href="{{ globals.cdn_url }}{{ globals.avatar_transparent }}?class=w50&v={% appVersion %}" rel="icon" sizes="any" />
|
|
<link href="{{ globals.cdn_url }}{{ globals.avatar_transparent }}?class=w50&v={% appVersion %}&type=svg" rel="icon" type="image/svg+xml" />
|
|
<link href="{{ globals.cdn_url }}{{ globals.avatar }}?class=w800&v={% appVersion %}" rel="apple-touch-icon" />
|
|
<link type="application/atom+xml" rel="alternate" title="Posts / {{ globals.site_name }}" href="https://coryd.dev/feeds/posts" />
|
|
<link rel="alternate" href="https://coryd.dev/feeds/links" title="Links / {{ globals.site_name }}" type="application/rss+xml" />
|
|
<link rel="alternate" href="https://coryd.dev/feeds/movies" title="Movies / {{ globals.site_name }}'s movies feed" type="application/rss+xml" />
|
|
<link rel="alternate" href="https://coryd.dev/feeds/books" title="Books / {{ globals.site_name }}" type="application/rss+xml" />
|
|
<link rel="alternate" href="https://coryd.dev/feeds/album-releases" title="Album releases / {{ globals.site_name }}" type="application/rss+xml" />
|
|
<link rel="alternate" href="https://coryd.dev/feeds/all" title="All activity / {{ globals.site_name }}" type="application/rss+xml" />
|
|
<script defer src="/assets/scripts/index.js?v={% appVersion %}"></script>
|
|
<script defer data-domain="coryd.dev" src="/js/script.js"></script>
|
|
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
|
|
<noscript>
|
|
<style>.client-side {display:none}</style>
|
|
</noscript>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
(() => {
|
|
const storageType =
|
|
document.querySelector("theme-toggle")?.getAttribute("storage") === "local"
|
|
? localStorage
|
|
: sessionStorage;
|
|
|
|
const currentTheme = storageType.getItem("theme") || "auto";
|
|
const metaColorScheme = document.querySelector('meta[name="color-scheme"]');
|
|
const lightIcon = document.querySelector(".light");
|
|
const darkIcon = document.querySelector(".dark");
|
|
const autoIcon = document.querySelector(".auto");
|
|
|
|
if (currentTheme === "auto") {
|
|
metaColorScheme.setAttribute("content", "light dark");
|
|
document.documentElement.style.colorScheme = "";
|
|
} else {
|
|
metaColorScheme.setAttribute("content", currentTheme);
|
|
document.documentElement.style.colorScheme = currentTheme;
|
|
}
|
|
|
|
lightIcon.style.display = "none";
|
|
darkIcon.style.display = "none";
|
|
autoIcon.style.display = "none";
|
|
|
|
if (currentTheme === "light") {
|
|
lightIcon.style.display = "inline";
|
|
} else if (currentTheme === "dark") {
|
|
darkIcon.style.display = "inline";
|
|
} else {
|
|
autoIcon.style.display = "inline";
|
|
}
|
|
})();
|
|
</script>
|
|
<div class="main-wrapper">
|
|
<main>
|
|
{% render "header.liquid", globals:globals, page:page, nav:nav %}
|
|
<div class="default-wrapper" data-dynamic="page">
|
|
{{ content }}
|
|
</div>
|
|
</main>
|
|
{% render "footer.liquid", page:page, nav:nav, updated:updateTime %}
|
|
</div>
|
|
</body>
|
|
</html> |