migrate bootstrap and flags to bundle

This commit is contained in:
Aaron Qian 2022-11-13 22:50:28 -08:00 committed by Aaron Qian
parent 3957190425
commit 82feb539bd
No known key found for this signature in database
GPG key ID: BF1A987C395B5B0E
532 changed files with 63 additions and 7630 deletions

View file

@ -0,0 +1,24 @@
@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 }}