Files
reproxy/site/src/layouts/default.njk
T
2021-04-16 15:25:06 -05:00

91 lines
5.0 KiB
Plaintext

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>{{ site.title }}</title>
<link rel="icon" href="/favicon.svg"/>
<link rel="mask-icon" href="/favicon.svg" color="#FF7A00"/>
<link rel="apple-touch-icon" href="/touch-icon.png"/>
<meta name="theme-color" content="#FF7A00"/>
<meta property="og:title" content="{{ site.title }}"/>
<meta name="description" content="{{ site.description }}"/>
<meta property="og:description" content="{{ site.description }}"/>
<meta property="og:image" content="{{ site.url }}/sharing.png"/>
<meta property="og:image:width" content="1080"/>
<meta property="og:image:height" content="512"/>
<meta property="twitter:image" content="{{ site.url }}/sharing.png"/>
<meta property="og:type" content="website"/>
<meta property="og:url" content="{{ site.url }}"/>
<meta property="og:locale" content="en_US"/>
<meta name="twitter:card" content="summary_large_image"/>
{% if site.env === 'production' %}
{% set css %}{% include "main.css" %}{% endset %}
<style>{{ css | safe }}</style>
{% else %}
<link rel="stylesheet" href="/main.css"/>
{% endif %}
</head>
<body class="h-screen bg-white dark:bg-gray-900">
<header class="fixed top-0 left-0 z-20 w-full border-b border-gray-100 bg-opacity-75 backdrop-filter backdrop-blur-lg bg-white dark:bg-gray-900 transition-colors duration-200 dark:bg-dark dark:border-gray-800">
<nav class="flex items-center h-16 md:h-20 w-full py-2">
<div class="p-4 mr-auto">
<span class="text-xl font-bold text-orange-600 dark:text-gray-300">{{ site.title }}</span>
<span class="block mt-1 text-sm md:text-md text-gray-500 dark:text-gray-400">{{ site.subtitle }}</span>
</div>
<div class="mr-3">
<a class="text-gray-400 dark:text-gray-400 hover:text-gray-600 dark:hover:text-gray-200" aria-label="github link" rel="noopener noreferrer" href="{{ site.githubUrl }}" target="_blank">
<svg height="28" viewBox="0 0 24 24" fill="none">
<path d="M12 3C7.0275 3 3 7.12937 3 12.2276C3 16.3109 5.57625 19.7597 9.15374 20.9824C9.60374 21.0631 9.77249 20.7863 9.77249 20.5441C9.77249 20.3249 9.76125 19.5982 9.76125 18.8254C7.5 19.2522 6.915 18.2602 6.735 17.7412C6.63375 17.4759 6.19499 16.6569 5.8125 16.4378C5.4975 16.2647 5.0475 15.838 5.80124 15.8264C6.51 15.8149 7.01625 16.4954 7.18499 16.7723C7.99499 18.1679 9.28875 17.7758 9.80625 17.5335C9.885 16.9337 10.1212 16.53 10.38 16.2993C8.3775 16.0687 6.285 15.2728 6.285 11.7432C6.285 10.7397 6.63375 9.9092 7.20749 9.26326C7.1175 9.03257 6.8025 8.08674 7.2975 6.81794C7.2975 6.81794 8.05125 6.57571 9.77249 7.76377C10.4925 7.55615 11.2575 7.45234 12.0225 7.45234C12.7875 7.45234 13.5525 7.55615 14.2725 7.76377C15.9937 6.56418 16.7475 6.81794 16.7475 6.81794C17.2424 8.08674 16.9275 9.03257 16.8375 9.26326C17.4113 9.9092 17.76 10.7281 17.76 11.7432C17.76 15.2843 15.6563 16.0687 13.6537 16.2993C13.98 16.5877 14.2613 17.1414 14.2613 18.0065C14.2613 19.2407 14.25 20.2326 14.25 20.5441C14.25 20.7863 14.4188 21.0746 14.8688 20.9824C16.6554 20.364 18.2079 19.1866 19.3078 17.6162C20.4077 16.0457 20.9995 14.1611 21 12.2276C21 7.12937 16.9725 3 12 3Z" fill="currentColor"></path>
</svg>
</a>
</div>
<button aria-label="Show navigation" id="sidebar-open-button" class="block md:hidden mr-3">
<svg fill="none" width="24" height="24" viewBox="0 0 24 24" class="text-gray-400 hover:text-gray-600" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path>
</svg>
</button>
</nav>
</header>
<aside
id="sidebar"
class="
hidden md:block
fixed z-10 top-0 left-0 inset-y-0
w-full md:w-60
overflow-y-auto
mt-20 md:mt-20
bg-white dark:bg-gray-900
text-gray-500 dark:text-gray-400
border-r border-gray-100 dark:bg-dark dark:border-gray-800
transition-colors duration-200
"
>
<button name="Close navigation" id="sidebar-close-button" class="float-right justify-end block md:hidden -mr-4 p-6">
<svg xmlns="http://www.w3.org/2000/svg" class="dark:bg-gray-500" width="18" height="18" viewBox="0 0 18 18">
<path class="text-gray-100" d="M14.53 4.53l-1.06-1.06L9 7.94 4.53 3.47 3.47 4.53 7.94 9l-4.47 4.47 1.06 1.06L9 10.06l4.47 4.47 1.06-1.06L10.06 9z"></path>
</svg>
</button>
<div class="py-6 pr-6 pl-1">
{{ content | toc | safe }}
</div>
</aside>
<main class="px-4 pt-24 md:pt-28 pb-20 md:pl-60">
<arcicle class="block m-auto max-w-5xl prose 2xl:prose-lg dark:prose-dark dark:text-gray-100">
{{ content | safe }}
<footer class="flex mt-4">
<div class="ml-auto text-xs">
Updated&nbsp;<time datetime="{{ site.date | isoDate }}">{{ site.date | humanizeDate }}</time>
<a class="ml-2 inline-block no-underline font-normal rounded" target="_blank" href="{{ site.githubUrl }}/edit/{{ site.githubBranch }}/README.md">Edit</a>
</div>
</footer>
</article>
</main>
{% set js %}{% include "main.js" %}{% endset %}
<script>
{{ js | safe }}
</script>
</body>
</html>