hugo-theme-introduction/assets/sass/style.sass
Victoria Drake 32d46f19f4 Fix missing fonts in demo page
- Update font path in style.sass to use urls.Parse
- No sites should be affected if their baseURLs are correct
- Address #260
2020-11-20 06:30:25 -05:00

31 lines
803 B
Sass

{{ $themeStyle := .Site.Params.themeStyle | default "light" }}
$fa-font-path: '{{ urls.Parse "/fonts/fontawesome-free/webfonts" }}'
$nunito-font-path: '{{ urls.Parse "/fonts/NunitoSans" }}'
{{ if eq $themeStyle "auto" }}
@import "fonts"
@import "light-variables"
@import "base-variables"
@import "bulma-import"
@import "fontawesome-import"
@import "base"
@import "light-style"
@media (prefers-color-scheme: dark)
@import "fonts"
@import "dark-variables"
@import "base-variables"
@import "bulma-import"
@import "fontawesome-import"
@import "base"
@import "dark-style"
{{ else }}
@import "fonts"
@import "{{ $themeStyle }}-variables"
@import "base-variables"
@import "bulma-import"
@import "fontawesome-import"
@import "base"
@import "{{ $themeStyle }}-style"
{{ end }}