diff --git a/_includes/head/links-static.html b/_includes/head/links-static.html index 83f0e1a941a..18362c67776 100644 --- a/_includes/head/links-static.html +++ b/_includes/head/links-static.html @@ -6,8 +6,11 @@ {% if site.google_fonts %} - - + {%- capture google_fonts_url %}{{ site.google_fonts_url | default:'https://fonts.googleapis.com' }}{%- endcapture -%} + + {%- if google_fonts_url == 'https://fonts.googleapis.com' -%} + + {%- endif -%} {% endif %} {% if site.google_analytics %} diff --git a/_includes/head/styles-inline.html b/_includes/head/styles-inline.html index 94aaff0d46b..6e89b661908 100644 --- a/_includes/head/styles-inline.html +++ b/_includes/head/styles-inline.html @@ -1,7 +1,9 @@ {% assign google_fonts = site.google_fonts %} {% capture style_url %}{{ 'assets/css/hydejack-9.1.2.css' | relative_url }}{% endcapture %} {% capture icons_url %}{{ 'assets/icomoon/style.css' | relative_url }}{% endcapture %} -{% if google_fonts %}{% capture fonts_url %}https://fonts.googleapis.com/css?family={{ google_fonts | uri_escape }}&display=swap{% endcapture %}{% endif %} +{% if google_fonts %} + {% capture fonts_url %}{{ site.google_fonts_url | default:'https://fonts.googleapis.com' }}/css?family={{ google_fonts | uri_escape }}&display=swap{% endcapture %} +{% endif %} diff --git a/_includes/head/styles-no-inline.html b/_includes/head/styles-no-inline.html index 8f778864e37..a43761a23ae 100644 --- a/_includes/head/styles-no-inline.html +++ b/_includes/head/styles-no-inline.html @@ -1,7 +1,9 @@ {% assign google_fonts = site.google_fonts %} {% capture style_url %}{{ 'assets/css/hydejack-9.1.2.css' | relative_url }}{% endcapture %} {% capture icons_url %}{{ 'assets/icomoon/style.css' | relative_url }}{% endcapture %} -{% if google_fonts %}{% capture fonts_url %}https://fonts.googleapis.com/css?family={{ google_fonts | uri_escape }}&display=swap{% endcapture %}{% endif %} +{% if google_fonts %} + {% capture fonts_url %}{{ site.google_fonts_url | default:'https://fonts.googleapis.com' }}/css?family={{ google_fonts | uri_escape }}&display=swap{% endcapture %} +{% endif %}