mainpage_v2_theme/layouts/partials/head/_resources.html
2024-03-24 22:16:02 +01:00

11 lines
566 B
HTML

<!-- Load Shared SCSS -->
{{- $sharedSCSS := resources.Get "scss/shared/shared.scss" -}}
{{- $sharedSCSS := $sharedSCSS | resources.ToCSS (dict "outputStyle" "compressed" "includePaths" (slice "assets")) -}}
{{- $sharedSCSS := $sharedSCSS | resources.ExecuteAsTemplate "main.scss" . -}}
<!-- Load Shared JS -->
{{- $sharedJS := resources.Get "js/shared/shared.js" -}}
{{- $sharedJS := $sharedJS | js.Build (dict "minify" "true") -}}
<style type="text/css" media="all">{{ $sharedSCSS.Content | safeCSS }}</style>
<script>{{- $sharedJS.Content | safeJS -}}</script>