mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-01-23 09:50:39 +00:00
7f7943d2fc
* feat(dark mode): set up first set of colors * feat(dark mode): define state colours * 🧹 * feat(dark mode): variablify all teh wordz * feat(dark mode): set colors on body * feat(dark mode): replace hard coded color value * feat(dark mode): 🌑 * feat(a11y): update link focus styles - restores visible focus in windows high contrast mode - increases visibility in boxes with bg colour * feat(dark mode): enable postcss * 💅 * feat(dark mode): add user control * chore: use generic headline name * feat(dark mode): hide switch until script loads * feat(dark mode): increase link contrast * add content warning to footer nav partial * feat(dark mode): replace hard coded colour value in alertbox * feat(dark mode): tone down text colour * feat(dark mode): properly invert code elements * 🧹 move box styles into own partial * feat(dark mode): use darker colour as background for links
51 lines
1.8 KiB
Plaintext
51 lines
1.8 KiB
Plaintext
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<link rel="preconnect" href="https://use.typekit.net/" crossorigin>
|
|
<link rel="dns-prefetch" href="https://use.typekit.net/">
|
|
<link rel="preconnect" href="https://p.typekit.net/" crossorigin>
|
|
<link rel="dns-prefetch" href="https://p.typekit.net/">
|
|
{# Use title with path, or append a space to the page title to avoid collpasing with the meta title #}
|
|
{% set pageTitle = titleWithPath or title + ' ' or '' %}
|
|
|
|
{% if flag.level == "avoid" %}
|
|
{% set alert = flag.level + ": " %}
|
|
{% else %}
|
|
{% set alert = '' %}
|
|
{% endif %}
|
|
{% set preview = excerpt or renderData.description or description or metadata.description %}
|
|
{% set fullExcerpt = alert + preview %}
|
|
|
|
<title>{{ pageTitle + metadata.title }}</title>
|
|
<meta
|
|
name="twitter:description"
|
|
content="{{ fullExcerpt }}"
|
|
>
|
|
<meta name="twitter:card" content="summary"/>
|
|
<meta name="twitter:title" content="{{ pageTitle }}"/>
|
|
<meta
|
|
name="og:description"
|
|
content="{{ fullExcerpt }}"
|
|
>
|
|
<meta name="og:title" content="{{ pageTitle }}"/>
|
|
<meta
|
|
name="description"
|
|
content="{{ fullExcerpt }}"
|
|
>
|
|
<link rel="stylesheet" href="https://use.typekit.net/qlo3dpu.css">
|
|
<link rel="stylesheet" href="{{ '/assets/css/base.css' | url }}">
|
|
<link rel="alternate" type="application/atom+xml" href="{{ metadata.feedPermalink | absoluteUrl(metadata.url) }}">
|
|
{% block pageStyles %}
|
|
{% endblock pageStyles %}
|
|
</head>
|
|
<body>
|
|
{% block content %}{% endblock content %}
|
|
{% include 'components/base/site-footer.njk' %}
|
|
{% block pageScript %}
|
|
{% endblock pageScript %}
|
|
</body>
|
|
<script defer src="/js/theme-switcher.js"></script>
|
|
</html>
|