diff options
author | GeoSot <geo.sotis@gmail.com> | 2021-12-28 05:30:43 +0300 |
---|---|---|
committer | Mark Otto <otto@github.com> | 2022-07-17 01:28:23 +0300 |
commit | 27860fdc9ae8288ebb47db5206d9e24243fb09a6 (patch) | |
tree | 6e8446c2508060a302c33364cd321aca477bf0cc /build | |
parent | aa1ede051cd0cbc369be31ea097856e673e3573b (diff) |
Update font Sass for more control over paths
Diffstat (limited to 'build')
-rw-r--r-- | build/font/scss.hbs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build/font/scss.hbs b/build/font/scss.hbs index 3a5a70217..a9347bde1 100644 --- a/build/font/scss.hbs +++ b/build/font/scss.hbs @@ -1,5 +1,8 @@ ${{ name }}-font: "{{ name }}" !default; -${{ name }}-font-src: {{{ fontSrc }}} !default; +${{ name }}-font-dir: "{{ fontsUrl }}" !default; +${{ name }}-font-file: #{${{ name }}-font-dir}/#{${{ name }}-font} !default; +${{ name }}-font-hash: "{{ hash }}" !default; +${{ name }}-font-src: url("#{${{ name }}-font-file}.woff2?#{${{ name }}-font-hash}") format("woff2"), url("#{${{ name }}-font-file}.woff?#{${{ name }}-font-hash}") format("woff") !default; @font-face { font-family: ${{ name }}-font; |