Skip to content

Commit 22f2969

Browse files
committed
Repositioned <link rel="preconnect> tags
1 parent 5ffe269 commit 22f2969

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

_layouts/default.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717

1818
<meta name="viewport" content="width=device-width, initial-scale=1.0">
1919

20-
<link rel="preconnect" href="https://fonts.googleapis.com">
21-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
22-
2320
{% capture homepage_path %}/{{ page.lang }}/{% endcapture %}
2421
{% if page.url == homepage_path %}
2522
{% assign meta_description = "A Programmer's Best Friend" %}
@@ -43,6 +40,9 @@
4340

4441
<meta name="description" content="{{ meta_description }}">
4542

43+
<link rel="preconnect" href="https://fonts.googleapis.com">
44+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
45+
4646
<!-- Open Graph / Facebook -->
4747
<meta property="og:type" content="website">
4848
<meta property="og:url" content="{{ site.url }}{{ page.url | replace: 'index.html', '' }}">

_layouts/homepage.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212

1313
<meta name="viewport" content="width=device-width, initial-scale=1.0">
1414

15-
<link rel="preconnect" href="https://fonts.googleapis.com">
16-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
17-
1815
{% assign meta_description = "A Programmer's Best Friend" %}
1916
{% assign meta_title = page.title | default: "Ruby Programming Language" %}
2017

2118
<meta name="description" content="{{ meta_description }}">
2219

20+
<link rel="preconnect" href="https://fonts.googleapis.com">
21+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
22+
2323
<!-- Open Graph / Facebook -->
2424
<meta property="og:type" content="website">
2525
<meta property="og:url" content="{{ site.url }}{{ page.url | replace: 'index.html', '' }}">

0 commit comments

Comments
 (0)