Skip to content

Commit c128517

Browse files
committed
Move Google Fonts to link tag
1 parent 6eb0dff commit c128517

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

_includes/head.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
<link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
1818
<link rel="preload" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5/css/all.min.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
1919
<noscript><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5/css/all.min.css"></noscript>
20+
<!-- Google Fonts -->
21+
<link rel="preconnect" href="https://fonts.googleapis.com">
22+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
23+
<link href="https://fonts.googleapis.com/css2?family=Cardo&display=swap" rel="stylesheet">
2024

2125
{% if site.head_scripts %}
2226
{% for script in site.head_scripts %}

_sass/minimal-mistakes/_variables.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
Typography
77
========================================================================== */
88

9-
// Importing Cardo from Google Fonts or another source
10-
@import url('https://fonts.googleapis.com/css2?family=Cardo&display=swap');
9+
// Cardo font is loaded via a <link> tag in the site head
1110

1211
$doc-font-size: 16 !default;
1312

0 commit comments

Comments
 (0)