mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-21 19:42:52 +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" }}
|
{{ $themeStyle := .Site.Params.themeStyle | default "light" }}
|
||||||
$fa-font-path: '{{ "/fonts/fontawesome-free/webfonts" }}'
|
$fa-font-path: '{{ print $.Site.BaseURL "fonts/fontawesome-free/webfonts" }}'
|
||||||
$nunito-font-path: '{{ "/fonts/NunitoSans" }}'
|
$nunito-font-path: '{{ print $.Site.BaseURL "fonts/NunitoSans" }}'
|
||||||
|
|
||||||
{{ if eq $themeStyle "auto" }}
|
{{ if eq $themeStyle "auto" }}
|
||||||
@import "fonts"
|
@import "fonts"
|
||||||
|
|
Loading…
Reference in a new issue