sillon-fictionnel/themes/writeonly/layouts/partials/head/_resources.html

22 lines
888 B
HTML
Raw Normal View History

2024-01-28 13:23:24 +00:00
<!-- Load Shared SCSS -->
{{- $sharedSCSS := resources.Get "scss/styles.scss" -}}
{{- $sharedSCSS := $sharedSCSS | css.Sass (dict "outputStyle" "compressed" "includePaths" (slice "assets")) -}}
2024-01-28 13:23:24 +00:00
<style type="text/css" media="all">{{ $sharedSCSS.Content | safeCSS }}</style>
<!-- Load Shared JS -->
{{- $sharedJS := resources.Get "js/index.js" -}}
{{- $sharedJS := $sharedJS | js.Build (dict "minify" "true") -}}
<script>{{- $sharedJS.Content | safeJS -}}</script>
<!-- Mermaid -->
{{ if .Page.Store.Get "hasMermaid" }}
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
<script defer> mermaid.initialize({ startOnLoad: true, theme: "dark" }); </script>
{{ end }}
<!-- Audio player -->
<link rel="stylesheet" href="/plyr.css">
<script src="/plyr.polyfilled.js" crossorigin="anonymous"></script>
<script src="/plyr.js" crossorigin="anonymous"></script>