chore: split out styles + only load where needed
This commit is contained in:
parent
37db7d35d6
commit
0e65983a19
28 changed files with 250 additions and 287 deletions
|
@ -31,10 +31,9 @@
|
|||
type="image/svg+xml">
|
||||
<link href="/assets/icons/apple-touch-icon.png?v={% assetHash %}" rel="apple-touch-icon">
|
||||
{% capture css %}
|
||||
{% render "../assets/styles/yt-lite.css" %}
|
||||
{% render "../assets/styles/silka.css" %}
|
||||
{% render "../assets/styles/prism.css" %}
|
||||
{% render "../assets/styles/pagefind.css" %}
|
||||
{% render "../assets/styles/fonts/silka.css" %}
|
||||
{% render "../assets/styles/partials/vars.css" %}
|
||||
{% render "../assets/styles/partials/animations.css" %}
|
||||
{% render "../assets/styles/index.css" %}
|
||||
{% endcapture %}
|
||||
<style>
|
||||
|
@ -115,7 +114,7 @@
|
|||
<body>
|
||||
{{ content }}
|
||||
{% capture js %}
|
||||
{% render "../assets/scripts/script.js" %}
|
||||
{% render "../assets/scripts/index.js" %}
|
||||
{% endcapture %}
|
||||
<script>
|
||||
{{ js }}
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
{% capture css %}
|
||||
{% render "../../assets/styles/widgets/post-graph.css" %}
|
||||
{% endcapture %}
|
||||
<style>
|
||||
{{ css | cssmin }}
|
||||
</style>
|
||||
<div class="post-graph">
|
||||
{% assign years = postYears | reverse %}
|
||||
{%- for year in years %}
|
||||
|
|
|
@ -3,6 +3,12 @@ layout: main
|
|||
schema: blog
|
||||
---
|
||||
{% render "partials/header.liquid", meta: meta, page: page, nav: nav %}
|
||||
{% capture css %}
|
||||
{% render "../assets/styles/plugins/prism.css" %}
|
||||
{% endcapture %}
|
||||
<style>
|
||||
{{ css | cssmin }}
|
||||
</style>
|
||||
<div class="default__wrapper">
|
||||
<article class="h-entry" data-pagefind-body>
|
||||
{% if link %}
|
||||
|
|
Reference in a new issue