2023-06-22 08:52:32 +00:00
|
|
|
{{- if default true .Site.Params.geekblogDarkModeToggle }}
|
2022-12-21 10:41:23 +00:00
|
|
|
<script src="{{ index (index .Site.Data.assets "colortheme.js") "src" | relURL }}"></script>
|
|
|
|
{{- end }}
|
2022-01-23 20:42:59 +00:00
|
|
|
<script src="{{ index (index .Site.Data.assets "main.js") "src" | relURL }}"></script>
|
2021-11-23 15:53:25 +00:00
|
|
|
|
2021-12-30 14:55:55 +00:00
|
|
|
<link
|
|
|
|
rel="preload"
|
|
|
|
as="font"
|
|
|
|
href="{{ "fonts/Metropolis.woff2" | relURL }}"
|
|
|
|
type="font/woff2"
|
|
|
|
crossorigin="anonymous"
|
|
|
|
/>
|
|
|
|
<link
|
|
|
|
rel="preload"
|
|
|
|
as="font"
|
|
|
|
href="{{ "fonts/LiberationSans.woff2" | relURL }}"
|
|
|
|
type="font/woff2"
|
|
|
|
crossorigin="anonymous"
|
|
|
|
/>
|
|
|
|
<link
|
|
|
|
rel="preload"
|
|
|
|
as="font"
|
|
|
|
href="{{ "fonts/GeekblogIcons.woff2" | relURL }}"
|
|
|
|
type="font/woff2"
|
|
|
|
crossorigin="anonymous"
|
|
|
|
/>
|
2020-11-08 14:00:48 +00:00
|
|
|
|
2021-12-30 14:55:55 +00:00
|
|
|
<link
|
|
|
|
rel="preload"
|
|
|
|
href="{{ index (index .Site.Data.assets "main.scss") "src" | relURL }}"
|
|
|
|
as="style"
|
|
|
|
/>
|
|
|
|
<link
|
|
|
|
rel="stylesheet"
|
|
|
|
href="{{ index (index .Site.Data.assets "main.scss") "src" | relURL }}"
|
|
|
|
media="all"
|
|
|
|
/>
|
2020-11-08 16:08:17 +00:00
|
|
|
|
2021-12-30 14:55:55 +00:00
|
|
|
<link
|
|
|
|
rel="preload"
|
|
|
|
href="{{ index (index .Site.Data.assets "mobile.scss") "src" | relURL }}"
|
|
|
|
as="style"
|
|
|
|
/>
|
|
|
|
<link
|
|
|
|
rel="stylesheet"
|
|
|
|
href="{{ index (index .Site.Data.assets "mobile.scss") "src" | relURL }}"
|
|
|
|
media="screen and (max-width: 45rem)"
|
|
|
|
/>
|
2020-11-08 16:08:17 +00:00
|
|
|
|
2021-12-30 14:55:55 +00:00
|
|
|
<link
|
|
|
|
rel="preload"
|
|
|
|
href="{{ index (index .Site.Data.assets "print.scss") "src" | relURL }}"
|
|
|
|
as="style"
|
|
|
|
/>
|
|
|
|
<link
|
|
|
|
rel="stylesheet"
|
|
|
|
href="{{ index (index .Site.Data.assets "print.scss") "src" | relURL }}"
|
|
|
|
media="print"
|
|
|
|
/>
|
2020-11-08 14:00:48 +00:00
|
|
|
|
2021-12-30 14:55:55 +00:00
|
|
|
<link
|
|
|
|
rel="preload"
|
|
|
|
href="{{ index (index .Site.Data.assets "custom.css") "src" | relURL }}"
|
|
|
|
as="style"
|
|
|
|
/>
|
|
|
|
<link
|
|
|
|
rel="stylesheet"
|
|
|
|
href="{{ index (index .Site.Data.assets "custom.css") "src" | relURL }}"
|
|
|
|
media="all"
|
|
|
|
/>
|
2022-02-06 20:53:22 +00:00
|
|
|
{{- with .OutputFormats.Get "html" }}
|
|
|
|
{{ printf `<link href=%q rel=%q type=%q />` .Permalink .Rel .MediaType.Type | safeHTML }}
|
2022-02-06 11:46:10 +00:00
|
|
|
{{- end }}
|
2022-02-06 20:53:22 +00:00
|
|
|
{{- $output_formats := (.Site.GetPage "home").OutputFormats }}
|
|
|
|
{{- range $format := (.Site.GetPage "home").OutputFormats }}
|
|
|
|
{{- if not (eq $format.Rel "canonical") }}
|
|
|
|
{{ printf `<link href=%q rel=%q type=%q title="%s %s Feed" />` $format.Permalink $format.Rel $format.MediaType.Type $.Site.Title $format.Name | safeHTML }}
|
|
|
|
{{- end }}
|
2022-02-06 11:46:10 +00:00
|
|
|
{{- end }}
|
|
|
|
|
2023-06-22 08:52:32 +00:00
|
|
|
{{- if (default false $.Site.Params.geekblogOverwriteHTMLBase) }}
|
2024-01-15 20:15:17 +00:00
|
|
|
<base href="{{ .Site.Home.Permalink }}" />
|
2022-02-06 11:46:10 +00:00
|
|
|
{{- end }}
|
2021-05-23 20:58:37 +00:00
|
|
|
|
2020-09-27 20:14:36 +00:00
|
|
|
{{ printf "<!-- %s -->" "Made with Geekblog theme https://github.com/thegeeklab/hugo-geekblog" | safeHTML }}
|