2024-02-21 23:17:19 +01:00
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
|
|
|
<title>{{#if (ne page.title config.user.title)}}{{ page.title }} · {{/if}}{{ config.user.title }}</title>
|
|
|
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
|
2024-07-19 18:04:11 +02:00
|
|
|
<link rel="preload" href="{{ asset 'font/Recursive_VF_1.085.woff2' }}" as="font" type="font/woff2"
|
2024-02-21 23:17:19 +01:00
|
|
|
crossorigin="anonymous">
|
2024-10-29 18:14:01 +01:00
|
|
|
<link rel="stylesheet" href="{{ asset 'css/base.css' }}">
|
2024-07-19 18:04:11 +02:00
|
|
|
<link rel="stylesheet" href="{{ asset 'css/main.css' }}">
|
2024-09-28 23:43:05 +02:00
|
|
|
<link rel="stylesheet" href="{{ asset 'css/icons.css' }}">
|
2024-07-19 18:04:11 +02:00
|
|
|
<link rel="stylesheet" href="{{ asset 'css/tree.css' }}">
|
2024-02-21 23:17:19 +01:00
|
|
|
|
2024-11-16 18:33:41 +01:00
|
|
|
{{!--
|
|
|
|
Import maps currently don't support the src="" attribute. Unless we come up with something
|
|
|
|
clever to do while browser vendors figure that out, we'll just have to do a cache-busting string substitution.
|
|
|
|
--}}
|
|
|
|
<script type="importmap">{{{ import_map }}}</script>
|
2024-03-02 20:53:44 +01:00
|
|
|
|
2024-11-23 19:12:00 +01:00
|
|
|
{{#if dev}}
|
|
|
|
<script type="module">
|
|
|
|
import "treehouse/live-reload.js";
|
|
|
|
</script>
|
|
|
|
{{/if}}
|
|
|
|
|
2024-02-21 23:17:19 +01:00
|
|
|
<script>
|
|
|
|
const TREEHOUSE_SITE = `{{ config.site }}`;
|
2024-07-24 23:43:05 +02:00
|
|
|
|
|
|
|
{{!-- Yeah, this should probably be solved in a better way somehow.
|
|
|
|
For now this is used to allow literate-programming.js to refer to syntax files with the ?cache attribute,
|
|
|
|
so that they don't need to be redownloaded every single time. --}}
|
|
|
|
const TREEHOUSE_SYNTAX_URLS = {
|
|
|
|
javascript: `{{{ asset 'syntax/javascript.json' }}}`,
|
|
|
|
haku: `{{{ asset 'syntax/haku.json' }}}`,
|
|
|
|
};
|
2024-02-21 23:17:19 +01:00
|
|
|
</script>
|
2024-07-19 20:05:17 +02:00
|
|
|
<script type="module">
|
|
|
|
import "treehouse/spells.js";
|
|
|
|
import "treehouse/ulid.js";
|
|
|
|
import "treehouse/usability.js";
|
|
|
|
import "treehouse/settings.js";
|
|
|
|
import "treehouse/tree.js";
|
|
|
|
import "treehouse/emoji.js";
|
|
|
|
</script>
|
2024-02-21 23:17:19 +01:00
|
|
|
|
|
|
|
<meta property="og:site_name" content="{{ config.user.title }}">
|
|
|
|
<meta property="og:title" content="{{ page.title }}">
|
|
|
|
{{!--
|
|
|
|
This is a bit of a hack to quickly insert metadata into generated pages without going through Handlebars, which
|
|
|
|
would involve registering, parsing, and generating a page from a template.
|
|
|
|
Yes it would be more flexible that way, but it doesn't need to be.
|
|
|
|
It just needs to be a string replacement.
|
|
|
|
--}}
|
|
|
|
<!-- treehouse-ca37057a-cff5-45b3-8415-3b02dbf6c799-per-branch-metadata -->
|
|
|
|
{{#if page.thumbnail}}
|
|
|
|
<meta property="og:image" content="{{ page.thumbnail.url }}">
|
|
|
|
<meta property="og:image:alt" content="{{ page.thumbnail.alt }}">
|
|
|
|
{{/if}}
|
2024-03-08 22:40:19 +01:00
|
|
|
|
2024-07-19 18:04:11 +02:00
|
|
|
<link rel="icon" sizes="16x16" href="{{ asset (cat (cat 'favicon/' season) '@1x.png') }}">
|
|
|
|
<link rel="icon" sizes="32x32" href="{{ asset (cat (cat 'favicon/' season) '@2x.png') }}">
|
|
|
|
<link rel="icon" sizes="64x64" href="{{ asset (cat (cat 'favicon/' season) '@4x.png') }}">
|
|
|
|
<link rel="icon" sizes="128x128" href="{{ asset (cat (cat 'favicon/' season) '@8x.png') }}">
|
|
|
|
<link rel="icon" sizes="256x256" href="{{ asset (cat (cat 'favicon/' season) '@16x.png') }}">
|
|
|
|
<link rel="icon" sizes="512x512" href="{{ asset (cat (cat 'favicon/' season) '@32x.png') }}">
|
|
|
|
<link rel="apple-touch-icon" sizes="16x16" href="{{ asset (cat (cat 'favicon/' season) '@1x.png') }}">
|
|
|
|
<link rel="apple-touch-icon" sizes="32x32" href="{{ asset (cat (cat 'favicon/' season) '@2x.png') }}">
|
|
|
|
<link rel="apple-touch-icon" sizes="64x64" href="{{ asset (cat (cat 'favicon/' season) '@4x.png') }}">
|
|
|
|
<link rel="apple-touch-icon" sizes="128x128" href="{{ asset (cat (cat 'favicon/' season) '@8x.png') }}">
|
|
|
|
<link rel="apple-touch-icon" sizes="256x256" href="{{ asset (cat (cat 'favicon/' season) '@16x.png') }}">
|
|
|
|
<link rel="apple-touch-icon" sizes="512x512" href="{{ asset (cat (cat 'favicon/' season) '@32x.png') }}">
|
2024-11-27 19:02:30 +01:00
|
|
|
|
|
|
|
<link rel="canonical" href="{{ config.site }}/{{#if (ne page.tree_path 'index')}}{{ page.tree_path }}{{/if}}">
|
|
|
|
{{#each feeds as |feed_name|}}
|
|
|
|
<link rel="alternate" type="application/atom+xml" title="{{ feed_name }}" href="{{ config.site }}/feed/{{ feed_name }}.atom">
|
|
|
|
{{/each}}
|