2020-07-20 15:43:51 +01:00
< meta charset = "utf-8" >
< meta http-equiv = "X-UA-Compatible" content = "IE=edge" >
< meta name = "viewport" content = "width=device-width, initial-scale=1, shrink-to-fit=no" >
2022-03-27 14:14:06 +01:00
{{- if hugo.IsProduction | or (eq site.Params.env "production") }}
2020-11-14 07:24:22 +00:00
< meta name = "robots" content = "index, follow" >
{{- else }}
2021-03-30 13:37:36 +01:00
< meta name = "robots" content = "noindex, nofollow" >
{{- end }}
{{- /* Title */}}
2022-05-05 11:47:00 +01:00
{{- $pageTitle := site.Title }}
{{- if (and .Title (not .IsHome)) }}
{{- $pageTitle = printf "%s | %s" .Title $pageTitle }}
{{- end }}
< title > {{ $pageTitle }}< / title >
2021-03-30 13:37:36 +01:00
{{- /* Meta */}}
2021-03-31 05:30:31 +01:00
{{- if .IsHome }}
2022-03-31 19:03:56 +01:00
{{ with site.Params.keywords -}}< meta name = "keywords" content = "{{- range $i, $e := . }}{{ if $i }}, {{ end }}{{ $e }}{{ end }}" > {{ end }}
2021-03-31 05:30:31 +01:00
{{- else }}
2020-10-17 11:30:46 +01:00
< meta name = "keywords" content = "{{ if . Params . keywords - } }
{{- range $i, $e := .Params.keywords }}{{ if $i }}, {{ end }}{{ $e }}{{ end }} {{- else }}
2022-03-31 19:03:56 +01:00
{{- range $i, $e := .Params.tags }}{{ if $i }}, {{ end }}{{ $e }}{{ end }} {{- end -}}">
2021-03-31 05:30:31 +01:00
{{- end }}
2021-09-02 08:56:05 +01:00
< meta name = "description" content = "{{- with . Description } } { { . } } { { - else } } { { - if or . IsPage . IsSection } }
2022-03-27 14:14:06 +01:00
{{- .Summary | default (printf "%s - %s" .Title site.Title) }}{{- else }}
{{- with site.Params.description }}{{ . }}{{- end }}{{- end }}{{- end -}}">
2020-10-25 07:17:09 +00:00
< meta name = "author" content = "{{ (partial " author . html " . ) } } " >
2022-03-31 19:03:56 +01:00
< link rel = "canonical" href = "{{ if .Params.canonicalURL -}} {{ trim .Params.canonicalURL " " } } { { - else - } } { { . Permalink } } { { - end } } " >
2022-03-27 14:14:06 +01:00
{{- if site.Params.analytics.googlesiteVerificationTag }}
2022-03-31 19:03:56 +01:00
< meta name = "google-site-verification" content = "{{ site.Params.analytics.googlesiteVerificationTag }}" >
2021-03-30 13:37:36 +01:00
{{- end }}
2022-03-27 14:14:06 +01:00
{{- if site.Params.analytics.yandexsiteVerificationTag }}
2022-03-31 19:03:56 +01:00
< meta name = "yandex-verification" content = "{{ site.Params.analytics.yandexsiteVerificationTag }}" >
2021-03-30 13:37:36 +01:00
{{- end }}
2022-03-27 14:14:06 +01:00
{{- if site.Params.analytics.bingsiteVerificationTag }}
2022-03-31 19:03:56 +01:00
< meta name = "msvalidate.01" content = "{{ site.Params.analytics.bingsiteVerificationTag }}" >
2021-03-30 13:37:36 +01:00
{{- end }}
{{- /* Styles */}}
2021-03-27 05:58:55 +00:00
{{- $theme_vars := (resources.Get "css/core/theme-vars.css") }}
{{- $reset := (resources.Get "css/core/reset.css") }}
{{- $media := (resources.Get "css/core/zmedia.css") }}
{{- $common := (resources.Match "css/common/*.css") | resources.Concat "assets/css/common.css" }}
2022-04-14 17:55:41 +01:00
{{- $commonHighlight := (resources.Get "css/common/highlight.scss") | resources.ToCSS }}
2021-03-27 05:58:55 +00:00
{{- /* order is important */}}
2022-04-14 17:55:41 +01:00
{{- $core := (slice $theme_vars $reset $common $commonHighlight $media) | resources.Concat "assets/css/core.css" }}
2020-12-09 11:47:22 +00:00
{{- $extended := (resources.Match "css/extended/*.css") | resources.Concat "assets/css/extended.css" }}
2021-03-30 13:37:36 +01:00
{{- /* bundle all required css */}}
{{- /* Add extended css after theme style */ -}}
2021-03-27 05:58:55 +00:00
{{- $stylesheet := (slice $core $extended) | resources.Concat "assets/css/stylesheet.css" | minify }}
2020-12-09 11:47:22 +00:00
2022-03-27 14:14:06 +01:00
{{- if not site.Params.assets.disableFingerprinting }}
2021-03-30 13:37:36 +01:00
{{- $stylesheet := $stylesheet | fingerprint }}
2021-04-09 14:55:05 +01:00
< link crossorigin = "anonymous" href = "{{ $stylesheet.RelPermalink }}" integrity = "{{ $stylesheet.Data.Integrity }}" rel = "preload stylesheet" as = "style" >
2021-03-30 13:37:36 +01:00
{{- else }}
2021-04-09 14:55:05 +01:00
< link crossorigin = "anonymous" href = "{{ $stylesheet.RelPermalink }}" rel = "preload stylesheet" as = "style" >
2021-03-30 13:37:36 +01:00
{{- end }}
{{- /* Favicons */}}
2022-05-07 18:24:38 +01:00
< link rel = "icon" href = "{{ site.Params.favicon | default " favicon . ico " | absURL } } " >
2022-05-24 18:13:17 +01:00
< link rel = "apple-touch-icon" href = "{{ site.Params.appleTouchIcon | default " apple-touch-icon . png " | absURL } } " >
2021-03-30 13:37:36 +01:00
{{- /* RSS */}}
{{ range .AlternativeOutputFormats -}}
2021-05-01 16:55:26 +01:00
< link rel = "{{ .Rel }}" type = "{{ .MediaType.Type | html }}" href = "{{ .Permalink | safeURL }}" >
2020-10-03 10:17:42 +01:00
{{ end -}}
2021-01-29 17:55:07 +00:00
{{- range .AllTranslations -}}
2022-03-31 19:03:56 +01:00
< link rel = "alternate" hreflang = "{{ .Lang }}" href = "{{ .Permalink }}" >
2021-09-11 06:39:01 +01:00
{{ end -}}
2022-04-11 15:24:40 +01:00
{{- /* Misc */}}
{{- if hugo.IsProduction | or (eq site.Params.env "production") }}
2022-05-19 09:15:32 +01:00
{{- if site.GoogleAnalytics }}
{{- template "_internal/google_analytics.html" . }}
{{- end -}}
{{- if site.Params.useCustomAnalytics }}
{{- partialCached "custom_analytics.html" . "custom_analytics.html" }}
{{- end -}}
2022-04-11 15:24:40 +01:00
{{- end -}}
2022-05-05 04:24:13 +01:00
{{- /* https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started */}}
{{- if .Params.cover.image }}
< meta name = "twitter:image" content = "{{ (path.Join .RelPermalink .Params.cover.image ) | absURL }}" / >
2022-05-09 15:26:45 +01:00
< meta name = "twitter:card" property = "twitter:card" content = "summary_large_image" / >
2022-05-08 15:42:23 +01:00
{{- else }}
{{- with site.Params.images -}}
< meta name = "twitter:image" content = "{{ index . 0 | absURL }}" / >
2022-05-09 15:26:45 +01:00
< meta name = "twitter:card" property = "twitter:card" content = "summary" / >
2022-05-08 15:42:23 +01:00
{{- end }}
{{- end }}
2022-05-05 11:47:00 +01:00
< meta name = "twitter:title" content = "{{ $pageTitle }}" / >
< meta name = "twitter:description" content = "{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end -}}" / >
< meta name = "twitter:site" content = "@novoreorx" / >
< meta name = "twitter:creator" content = "@novoreorx" / >
2022-05-05 04:24:13 +01:00
2022-05-05 11:47:00 +01:00
{{- template "partials/templates/opengraph.html" (dict "page" . "pageTitle" $pageTitle) }}
2022-05-05 04:24:13 +01:00
2022-05-05 11:47:00 +01:00
{{- template "partials/templates/schema_json.html" (dict "page" . "pageTitle" $pageTitle) }}
2022-04-11 15:24:40 +01:00
{{- partial "extend_head.html" . }}
2021-09-11 06:39:01 +01:00
< noscript >
< style >
#theme-toggle,
.top-link {
display: none;
}
< / style >
2022-03-27 14:14:06 +01:00
{{- if (and (ne site.Params.defaultTheme "light") (ne site.Params.defaultTheme "dark")) }}
2021-09-11 06:39:01 +01:00
< style >
@media (prefers-color-scheme: dark) {
:root {
2021-09-20 16:38:44 +01:00
--theme: rgb(29, 30, 32);
--entry: rgb(46, 46, 51);
--primary: rgb(218, 218, 219);
--secondary: rgb(155, 156, 157);
2022-04-21 10:32:20 +01:00
--tertiary-bg: rgb(65, 66, 68);
2021-09-20 16:38:44 +01:00
--content: rgb(196, 196, 197);
--code-bg: rgb(55, 56, 62);
--border: rgb(51, 51, 51);
2021-09-11 06:39:01 +01:00
}
.list {
background: var(--theme);
}
.list:not(.dark)::-webkit-scrollbar-track {
background: 0 0;
}
.list:not(.dark)::-webkit-scrollbar-thumb {
border-color: var(--theme);
}
}
< / style >
{{- end }}
< / noscript >