From ebbd818223fd3d36c2d208cf60365843c77a7824 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sat, 30 Nov 2019 22:31:50 +0800 Subject: [PATCH] Split the css importing. CRP optimization. --- _includes/head.html | 5 +++++ assets/css/{_typograph/fonts.scss => _fonts.scss} | 0 assets/css/main.scss | 5 +---- assets/css/post.scss | 1 - assets/css/{_typograph => }/syntax.scss | 2 ++ 5 files changed, 8 insertions(+), 5 deletions(-) rename assets/css/{_typograph/fonts.scss => _fonts.scss} (100%) rename assets/css/{_typograph => }/syntax.scss (99%) diff --git a/_includes/head.html b/_includes/head.html index 5928411..e8a7f34 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -71,6 +71,10 @@ {% endif %} + {% if page.title == 'About' and page.layout == 'page' %} + + {% endif %} + @@ -99,6 +103,7 @@ {% if page.layout == 'post' %} + {% if site.toc and page.toc %} diff --git a/assets/css/_typograph/fonts.scss b/assets/css/_fonts.scss similarity index 100% rename from assets/css/_typograph/fonts.scss rename to assets/css/_fonts.scss diff --git a/assets/css/main.scss b/assets/css/main.scss index 09e8a19..25fa00a 100644 --- a/assets/css/main.scss +++ b/assets/css/main.scss @@ -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%; diff --git a/assets/css/post.scss b/assets/css/post.scss index 4900b11..81fe0f2 100644 --- a/assets/css/post.scss +++ b/assets/css/post.scss @@ -1,6 +1,5 @@ --- --- - /*! Individual styles for Post © 2019 Cotes Chung diff --git a/assets/css/_typograph/syntax.scss b/assets/css/syntax.scss similarity index 99% rename from assets/css/_typograph/syntax.scss rename to assets/css/syntax.scss index b61ae44..2c51931 100644 --- a/assets/css/_typograph/syntax.scss +++ b/assets/css/syntax.scss @@ -1,3 +1,5 @@ +--- +--- /* * The syntax highlight. * © 2018-2019 Cotes Chung