Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit 454670b

Browse files
committed
prefetch blog only on home 🚀
1 parent 9228892 commit 454670b

File tree

10 files changed

+11
-9
lines changed

10 files changed

+11
-9
lines changed

_includes/head.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
<link rel="author" href="/humans.txt"/>
99
<link rel="manifest" href="/manifest.json">
1010
<link rel="preload" href="/assets/fonts/opensans/OpenSans-Regular.woff2" as="font" crossorigin="anonymous">
11+
{% if include.prefetch-blog == true %}
1112
<link rel="prefetch" href="/blog/">
13+
{% endif %}
1214
<link rel="preconnect" href="https://www.google-analytics.com">
1315
{% include icons.html %}
1416
{% include analytics.html %}

_layouts/404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!doctype html>
22
<html lang="en">
3-
{% include head.html critical-css="critical-error.css" %}
3+
{% include head.html critical-css="critical-error.css" prefetch-blog=false %}
44
<body>
55
<h1>404!</h1>
66
<p>Opss!?! Keep calm and go to</p>

_layouts/blog.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
{% include head.html critical-css="critical-blog.css" content-type="website" %}
3+
{% include head.html critical-css="critical-blog.css" content-type="website" prefetch-blog=false %}
44
<body class="blog-body">
55
{% include blog-masthead.html track-category=site.data.tracking.category.blog_home %}
66
{% include blog-pull-to-refresh.html %}

_layouts/cookie-policy.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
{% include head.html critical-css="critical-blog-post.css" %}
3+
{% include head.html critical-css="critical-blog-post.css" prefetch-blog=false %}
44
<body class="blog-body">
55
{% include blog-masthead.html track-category=site.data.tracking.category.cookie_policy %}
66
<div class="container blog-posts">

_layouts/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
{% include head.html critical-css="critical.css" content-type="profile" %}
3+
{% include head.html critical-css="critical.css" content-type="profile" prefetch-blog=true %}
44
<body>
55
<div id="profile-introduction" class="container-fluid profile-introduction">
66
<div id="rendering-surface" class="container-fluid"></div>

_layouts/offline.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!doctype html>
22
<html lang="en">
3-
{% include head.html critical-css="critical-error.css" %}
3+
{% include head.html critical-css="critical-error.css" prefetch-blog=false %}
44
<body>
55
<img src="/assets/images/no-wifi.png" alt="no network">
66
<p>Opss!?! Seems like you're offline</p>

_layouts/post-archive.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
{% include head.html critical-css="critical-blog-post-archive.css" content-type="website" %}
3+
{% include head.html critical-css="critical-blog-post-archive.css" content-type="website" prefetch-blog=false %}
44
<body class="blog-body">
55
{% include blog-masthead.html track-category=site.data.tracking.category.blog_archive %}
66
{% include blog-pull-to-refresh.html %}

_layouts/post.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
{% include head.html critical-css="critical-blog-post.css" %}
3+
{% include head.html critical-css="critical-blog-post.css" prefetch-blog=false %}
44
<body class="blog-body">
55
{% include blog-masthead.html track-category=site.data.tracking.category.blog_post %}
66
{% include blog-pull-to-refresh.html %}

_layouts/privacy-policy.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
{% include head.html critical-css="critical-blog-post.css" %}
3+
{% include head.html critical-css="critical-blog-post.css" prefetch-blog=false %}
44
<body class="blog-body">
55
{% include blog-masthead.html track-category=site.data.tracking.category.privacy_policy %}
66
<div class="container blog-posts">

_layouts/tags.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
{% include head.html critical-css="critical-blog-tags.css" content-type="website" %}
3+
{% include head.html critical-css="critical-blog-tags.css" content-type="website" prefetch-blog=false %}
44
<body class="blog-body">
55
{% include blog-masthead.html track-category=site.data.tracking.category.blog_tags %}
66
{% include blog-pull-to-refresh.html %}

0 commit comments

Comments
 (0)