chore: split out styles + only load where needed

This commit is contained in:
Cory Dransfeldt 2024-01-02 12:50:20 -08:00
parent 37db7d35d6
commit 0e65983a19
No known key found for this signature in database
28 changed files with 250 additions and 287 deletions

View file

@ -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 }}