2024-08-28 22:32:21 +00:00
{{- $outputFormat := "html" }}
{{- with .Store.Get "relearnOutputFormat" }}
{{- $outputFormat = . }}
{{- else }}
2024-09-29 21:54:17 +00:00
{{- warnf "WARNING no key `relearnOutputFormat` found in page store, set one by providing the file `layouts/_default/view/storeOutputFormat.< MYOUTPUTFORMAT > .html` for your self-defined output format; see https://mcshelby.github.io/hugo-theme-relearn/introduction/releasenotes/6/#6-0-0" }}
2024-08-28 22:32:21 +00:00
{{- end }}
2024-09-11 18:22:53 +00:00
{{- $assetBusting := partialCached "assetbusting.gotmpl" . }}
2024-04-24 21:05:13 +00:00
{{- /* https://github.com/filamentgroup/loadCSS/blob/master/README.md#how-to-use */}}
2024-07-04 06:23:54 +00:00
< link href = "{{" css / fontawesome-all . min . css " | relURL } } { { $ assetBusting } } " rel = "stylesheet" media = "print" onload = "this.media='all';this.onload=null;" > < noscript > < link href = "{{" css / fontawesome-all . min . css " | relURL } } { { $ assetBusting } } " rel = "stylesheet" > < / noscript >
< link href = "{{" css / nucleus . css " | relURL } } { { $ assetBusting } } " rel = "stylesheet" >
< link href = "{{" css / auto-complete . css " | relURL } } { { $ assetBusting } } " rel = "stylesheet" media = "print" onload = "this.media='all';this.onload=null;" > < noscript > < link href = "{{" css / auto-complete . css " | relURL } } { { $ assetBusting } } " rel = "stylesheet" > < / noscript >
< link href = "{{" css / perfect-scrollbar . min . css " | relURL } } { { $ assetBusting } } " rel = "stylesheet" >
< link href = "{{" css / fonts . css " | relURL } } { { $ assetBusting } } " rel = "stylesheet" media = "print" onload = "this.media='all';this.onload=null;" > < noscript > < link href = "{{" css / fonts . css " | relURL } } { { $ assetBusting } } " rel = "stylesheet" > < / noscript >
< link href = "{{" css / theme . css " | relURL } } { { $ assetBusting } } " rel = "stylesheet" >
2024-08-29 10:28:34 +00:00
{{- $themevariants := partialCached "_relearn/themeVariants.gotmpl" . }}
2022-02-13 00:53:23 +00:00
{{- with index $themevariants 0 }}
2024-07-04 06:23:54 +00:00
< link href = "{{(printf " css / theme- % s . css " . identifier ) | relURL } } { { $ assetBusting } } " rel = "stylesheet" id = "R-variant-style" >
< link href = "{{(printf " css / chroma- % s . css " . chroma ) | safeHTML | relURL } } { { $ assetBusting } } " rel = "stylesheet" id = "R-variant-chroma-style" >
2022-02-06 12:51:54 +00:00
{{- end }}
2024-07-04 06:23:54 +00:00
< link href = "{{" css / variant . css " | relURL } } { { $ assetBusting } } " rel = "stylesheet" >
< link href = "{{" css / print . css " | relURL } } { { $ assetBusting } } " rel = "stylesheet" media = "print" >
2022-11-12 22:21:21 +00:00
{{- $f := printf "/static/css/format-%s.css" $outputFormat }}
2024-08-29 10:28:34 +00:00
{{- if or (partialCached "_relearn/fileExists.gotmpl" $f $f) (resources.Get (printf "/css/format-%s.css" $outputFormat)) }}
2024-07-04 06:23:54 +00:00
< link href = "{{(printf " css / format- % s . css " $ outputFormat ) | relURL } } { { $ assetBusting } } " rel = "stylesheet" >
2022-07-09 16:42:20 +00:00
{{- end }}
2024-07-04 06:23:54 +00:00
< script src = "{{" js / variant . js " | relURL } } { { $ assetBusting } } " > < / script >
2024-03-16 13:43:57 +00:00
< script >
2024-03-16 12:39:30 +00:00
window.relearn = window.relearn || {};
2024-08-29 10:28:34 +00:00
window.relearn.relBasePath='{{ partial "_relearn/relBasePath.gotmpl" . | safeJS }}';
window.relearn.relBaseUri='{{ partial "_relearn/relBaseUri.gotmpl" . | safeJS }}';
2024-03-18 20:58:26 +00:00
window.relearn.absBaseUri='{{ replaceRE "/*$" "" .Site.BaseURL | safeJS }}';
2024-08-22 16:33:27 +00:00
window.relearn.disableAnchorCopy={{ printf "%t" (eq .Site.Params.disableAnchorCopy true) | safeJS }};
window.relearn.disableAnchorScrolling={{ printf "%t" (eq .Site.Params.disableAnchorScrolling true) | safeJS }};
2023-11-16 22:53:06 +00:00
{{ "// variant stuff" | safeJS }}
2022-02-20 22:58:16 +00:00
{{- $quotedthemevariants := slice }}
{{- range $themevariants }}
2023-11-20 08:39:40 +00:00
{{- $quotedthemevariants = $quotedthemevariants | append (printf "'%s'" .identifier) }}
2022-02-20 22:58:16 +00:00
{{- end }}
2022-07-09 17:46:39 +00:00
window.variants & & variants.init( [ {{ delimit $quotedthemevariants ", " | safeJS }} ] );
2023-11-16 22:53:06 +00:00
{{ "// translations" | safeJS }}
{{ printf "window.T_Copy_to_clipboard = `%s`;" (T `Copy-to-clipboard`) | safeJS }}
{{ printf "window.T_Copied_to_clipboard = `%s`;" (T `Copied-to-clipboard`) | safeJS }}
{{ printf "window.T_Copy_link_to_clipboard = `%s`;" (T `Copy-link-to-clipboard`) | safeJS }}
{{ printf "window.T_Link_copied_to_clipboard = `%s`;" (T `Link-copied-to-clipboard`) | safeJS }}
{{ printf "window.T_Reset_view = `%s`;" (T `Reset-view`) | safeJS }}
{{ printf "window.T_View_reset = `%s`;" (T `View-reset`) | safeJS }}
{{ printf "window.T_No_results_found = `%s`;" (T "No-results-found") | safeJS }}
{{ printf "window.T_N_results_found = `%s`;" (T "N-results-found") | safeJS }}
2024-08-27 07:13:06 +00:00
< / script >