Skip to content

Commit

Permalink
Fix #264
Browse files Browse the repository at this point in the history
# Conflicts:
#	_includes/js/service-worker.js
  • Loading branch information
qwtel committed Mar 28, 2021
1 parent 77d4725 commit 3e1a265
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
7 changes: 5 additions & 2 deletions _includes/head/links-static.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@
<link rel="manifest" href="{{ '/assets/site.webmanifest' | relative_url }}">

{% if site.google_fonts %}
<link rel="dns-prefetch" href="https://fonts.googleapis.com">
<link rel="dns-prefetch" href="https://fonts.gstatic.com">
{%- capture google_fonts_url %}{{ site.google_fonts_url | default:'https://fonts.googleapis.com' }}{%- endcapture -%}
<link rel="dns-prefetch" href="{{ google_fonts_url }}">
{%- if google_fonts_url == 'https://fonts.googleapis.com' -%}
<link rel="dns-prefetch" href="https://fonts.gstatic.com">
{%- endif -%}
{% endif %}

{% if site.google_analytics %}
Expand Down
4 changes: 3 additions & 1 deletion _includes/head/styles-inline.html
Original file line number Diff line number Diff line change
@@ -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 %}

<link rel="preload" as="style" href="{{ style_url }}" id="_stylePreload">
<link rel="preload" as="style" href="{{ icons_url }}" id="_iconsPreload">
Expand Down
4 changes: 3 additions & 1 deletion _includes/head/styles-no-inline.html
Original file line number Diff line number Diff line change
@@ -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 %}

<link rel="stylesheet" href="{{ style_url }}" id="_stylePreload">
<link rel="stylesheet" href="{{ icons_url }}" id="_iconsPreload">
Expand Down

0 comments on commit 3e1a265

Please sign in to comment.