Skip to content

Commit 3e03337

Browse files
committed
Optimize CSS load
1 parent 04c2e90 commit 3e03337

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

_config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,6 @@ plugins:
5656

5757
paginate: 10
5858
paginate_path: "/archive/page:num/"
59+
60+
sass:
61+
style: compressed
File renamed without changes.

_includes/head.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
onload="this.onload=null;this.rel='stylesheet'">
1111
<noscript><link rel="stylesheet"
1212
href="https://fonts.googleapis.com/css2?family=VT323&display=swap"></noscript>
13-
<link rel="stylesheet" href="{{ '/assets/bschne.css' | relative_url }}" />
13+
14+
{% capture raw %}{% include bschne.scss %}{% endcapture %}
15+
<style>{{ raw | scssify }}</style>
16+
1417
{%- feed_meta -%} {%- if jekyll.environment == 'production' and
1518
site.google_analytics -%} {%- include google-analytics.html -%} {%- endif
1619
-%}

0 commit comments

Comments
 (0)