abdullahtarawneh.com/layouts/_default/custom_html.html
2024-06-02 00:04:04 -05:00

25 lines
523 B
HTML

{{ define "head" }}
{{ with .Resources.GetMatch "{*.scss,*.css}" }}
{{ $style := . | toCSS | minify | fingerprint }}
<link
rel="stylesheet"
href="{{ $style.RelPermalink }}"
integrity="{{ $style.Data.Integrity }}"
media="screen">
{{ end }}
{{ with .Resources.GetMatch "*.js" }}
{{ $js := . | minify | minify | fingerprint }}
<script
type="text/javascript"
src="{{ $js.RelPermalink }}"
integrity="{{ $js.Data.Integrity }}">
</script>
{{ end }}
{{ end }}
{{ define "main" }}
{{ .Content }}
{{ end }}