Skip to content

Commit e6eeb60

Browse files
committed
Split the css importing.
CRP optimization.
1 parent 8e6eb5f commit e6eeb60

5 files changed

Lines changed: 8 additions & 5 deletions

File tree

_includes/head.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@
7171
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/archives.css">
7272
{% endif %}
7373

74+
{% if page.title == 'About' and page.layout == 'page' %}
75+
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/syntax.css">
76+
{% endif %}
77+
7478

7579
<script src="https://cdn.jsdelivr.net/npm/jquery@3.4.1/dist/jquery.min.js"
7680
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
@@ -99,6 +103,7 @@
99103

100104
{% if page.layout == 'post' %}
101105
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/post.css">
106+
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/syntax.css">
102107
{% if site.toc and page.toc %}
103108
<link rel="stylesheet" href="{{ site.baseurl }}/assets/lib/bootstrap-toc-1.0.1/bootstrap-toc.min.css" />
104109
<script src="{{ site.baseurl }}/assets/lib/bootstrap-toc-1.0.1/bootstrap-toc.min.js" async></script>

assets/css/main.scss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
---
22
---
3-
43
/*!
54
* The main styles.
65
* © 2018-2019 Cotes Chung
76
* MIT Licensed
87
*/
98

10-
@import "_typograph/syntax";
11-
@import "_typograph/fonts";
12-
9+
@import "_fonts";
1310

1411
html, body {
1512
height: 100%;

assets/css/post.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
---
3-
43
/*!
54
Individual styles for Post
65
© 2019 Cotes Chung
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
---
2+
---
13
/*
24
* The syntax highlight.
35
* © 2018-2019 Cotes Chung

0 commit comments

Comments
 (0)