Skip to content

Commit

Permalink
Fix missing fonts in demo page
Browse files Browse the repository at this point in the history
- Update font path in style.sass to use urls.Parse
- No sites should be affected if their baseURLs are correct
- Address #260
  • Loading branch information
victoriadrake committed Nov 20, 2020
1 parent 49e5fb4 commit 32d46f1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 16 deletions.
4 changes: 2 additions & 2 deletions assets/sass/style.sass
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{ $themeStyle := .Site.Params.themeStyle | default "light" }}
$fa-font-path: '{{ print $.Site.BaseURL "fonts/fontawesome-free/webfonts" }}'
$nunito-font-path: '{{ print $.Site.BaseURL "fonts/NunitoSans" }}'
$fa-font-path: '{{ urls.Parse "/fonts/fontawesome-free/webfonts" }}'
$nunito-font-path: '{{ urls.Parse "/fonts/NunitoSans" }}'

{{ if eq $themeStyle "auto" }}
@import "fonts"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 32d46f1

Please sign in to comment.