Split the css importing.
CRP optimization.
This commit is contained in:
parent
3010e0b34e
commit
ebbd818223
5 changed files with 8 additions and 5 deletions
|
@ -71,6 +71,10 @@
|
|||
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/archives.css">
|
||||
{% endif %}
|
||||
|
||||
{% if page.title == 'About' and page.layout == 'page' %}
|
||||
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/syntax.css">
|
||||
{% endif %}
|
||||
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/jquery@3.4.1/dist/jquery.min.js"
|
||||
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
|
||||
|
@ -99,6 +103,7 @@
|
|||
|
||||
{% if page.layout == 'post' %}
|
||||
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/post.css">
|
||||
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/syntax.css">
|
||||
{% if site.toc and page.toc %}
|
||||
<link rel="stylesheet" href="{{ site.baseurl }}/assets/lib/bootstrap-toc-1.0.1/bootstrap-toc.min.css" />
|
||||
<script src="{{ site.baseurl }}/assets/lib/bootstrap-toc-1.0.1/bootstrap-toc.min.js" async></script>
|
||||
|
|
|
@ -1,15 +1,12 @@
|
|||
---
|
||||
---
|
||||
|
||||
/*!
|
||||
* The main styles.
|
||||
* © 2018-2019 Cotes Chung
|
||||
* MIT Licensed
|
||||
*/
|
||||
|
||||
@import "_typograph/syntax";
|
||||
@import "_typograph/fonts";
|
||||
|
||||
@import "_fonts";
|
||||
|
||||
html, body {
|
||||
height: 100%;
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
---
|
||||
|
||||
/*!
|
||||
Individual styles for Post
|
||||
© 2019 Cotes Chung
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
---
|
||||
---
|
||||
/*
|
||||
* The syntax highlight.
|
||||
* © 2018-2019 Cotes Chung
|
Loading…
Reference in a new issue