Browse Source

Add replace to build proper encoded URL

In the case of a font with spaces in the name (e.g. Roboto Slab), the import url will not be valid and fonts will not load as expected.
pull/6800/head
Ashley Abbott 6 years ago
committed by GitHub
parent
commit
6653d58ec4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. 2
      src/themes/default/globals/site.variables

2
src/themes/default/globals/site.variables

@ -12,7 +12,7 @@
@headerFont : @fontName, 'Helvetica Neue', Arial, Helvetica, sans-serif;
@pageFont : @fontName, 'Helvetica Neue', Arial, Helvetica, sans-serif;
@googleFontName : @fontName;
@googleFontName : replace(@fontName, ' ', '+');
@importGoogleFonts : true;
@googleFontSizes : '400,700,400italic,700italic';
@googleSubset : 'latin';

Loading…
Cancel
Save