mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-08 22:49:44 +00:00
Use BaseURL for fonts to handle urls that have path components. (#240)
This commit is contained in:
parent
b7ecf0c08c
commit
c213b38c6f
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue