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">
|
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/archives.css">
|
||||||
{% endif %}
|
{% 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"
|
<script src="https://cdn.jsdelivr.net/npm/jquery@3.4.1/dist/jquery.min.js"
|
||||||
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
|
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
|
||||||
|
@ -99,6 +103,7 @@
|
||||||
|
|
||||||
{% if page.layout == 'post' %}
|
{% if page.layout == 'post' %}
|
||||||
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/post.css">
|
<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 %}
|
{% if site.toc and page.toc %}
|
||||||
<link rel="stylesheet" href="{{ site.baseurl }}/assets/lib/bootstrap-toc-1.0.1/bootstrap-toc.min.css" />
|
<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>
|
<script src="{{ site.baseurl }}/assets/lib/bootstrap-toc-1.0.1/bootstrap-toc.min.js" async></script>
|
||||||
|
|
|
@ -1,15 +1,12 @@
|
||||||
---
|
---
|
||||||
---
|
---
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* The main styles.
|
* The main styles.
|
||||||
* © 2018-2019 Cotes Chung
|
* © 2018-2019 Cotes Chung
|
||||||
* MIT Licensed
|
* MIT Licensed
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@import "_typograph/syntax";
|
@import "_fonts";
|
||||||
@import "_typograph/fonts";
|
|
||||||
|
|
||||||
|
|
||||||
html, body {
|
html, body {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
---
|
---
|
||||||
---
|
---
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
Individual styles for Post
|
Individual styles for Post
|
||||||
© 2019 Cotes Chung
|
© 2019 Cotes Chung
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
---
|
||||||
/*
|
/*
|
||||||
* The syntax highlight.
|
* The syntax highlight.
|
||||||
* © 2018-2019 Cotes Chung
|
* © 2018-2019 Cotes Chung
|
Loading…
Reference in a new issue