hugo-toha/assets/styles/application.template.scss
2023-01-06 15:38:12 -08:00

24 lines
No EOL
678 B
SCSS

@import 'bootstrap/scss/bootstrap.scss';
{{ range $feature, $featureDef := site.Params.features }}
{{ with $featureDef }}
{{ $featureEnabled := or (not (isset . "enable")) .enable }}
{{ if $featureEnabled }}
{{ with (index site.Data.toha.styles $feature) }}
{{ range .styles }}
@import '{{.}}';
{{ end }}
{{ end }}
{{ range $service, $config := .services }}
{{ with (index site.Data.toha.styles $feature) }}
{{ with index $service }}
{{ range .styles }}
@import '{{.}}';
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}