support SCSS
This commit is contained in:
@@ -1,10 +1,13 @@
|
|||||||
<link rel="stylesheet" href="/css/snap-gallery.css" />
|
{{/* TODO: Ensure CSS/JS is only loaded once */}}
|
||||||
|
{{- with resources.Get "css/snap-gallery.scss" | toCSS | fingerprint }}
|
||||||
|
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
||||||
|
{{- end }}
|
||||||
<script src="/js/snap-gallery.js"></script>
|
<script src="/js/snap-gallery.js"></script>
|
||||||
|
|
||||||
{{/* Initialise variables */}}
|
{{/* Initialise variables */}}
|
||||||
{{ $imgs := slice }}
|
{{ $imgs := slice }}
|
||||||
|
|
||||||
|
{{/* Get/sanitise image paths */}}
|
||||||
{{ if .Params.isdir }}
|
{{ if .Params.isdir }}
|
||||||
{{/* Get images from folder, put into map */}}
|
{{/* Get images from folder, put into map */}}
|
||||||
{{ $imgdir := print "/static/" .Params.src }}
|
{{ $imgdir := print "/static/" .Params.src }}
|
||||||
|
|||||||
Reference in New Issue
Block a user