Use BaseURL for fonts to handle urls that have path components. (#240)

This commit is contained in:
Hudson Worden 2020-08-15 12:01:24 -07:00 committed by GitHub
parent b7ecf0c08c
commit c213b38c6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
{{ $themeStyle := .Site.Params.themeStyle | default "light" }}
$fa-font-path: '{{ "/fonts/fontawesome-free/webfonts" }}'
$nunito-font-path: '{{ "/fonts/NunitoSans" }}'
$fa-font-path: '{{ print $.Site.BaseURL "fonts/fontawesome-free/webfonts" }}'
$nunito-font-path: '{{ print $.Site.BaseURL "fonts/NunitoSans" }}'
{{ if eq $themeStyle "auto" }}
@import "fonts"