chore: split out styles + only load where needed

This commit is contained in:
Cory Dransfeldt 2024-01-02 13:49:47 -08:00
parent f21e8b18ae
commit 67fcfdb051
No known key found for this signature in database
26 changed files with 539 additions and 454 deletions

View file

@ -3,6 +3,12 @@ title: 404
layout: default
permalink: /404.html
---
{% capture css %}
{% render "../assets/styles/pages/404.css" %}
{% endcapture %}
<style>
{{ css | cssmin }}
</style>
<div class="four-oh-four__wrapper">
{% image './src/assets/img/404.jpg', title, 'image__banner' %}
<div class="text-center">

View file

@ -3,6 +3,12 @@ title: About
layout: default
permalink: /about.html
---
{% capture css %}
{% render "../assets/styles/pages/about.css" %}
{% endcapture %}
<style>
{{ css | cssmin }}
</style>
<div class="avatar__wrapper flex--centered">
<div class="avatar__wrapper--interior">
{% capture about_alt %}{{ meta.siteName }} - image by David Neal / @reverentgeek{% endcapture %}

View file

@ -4,6 +4,13 @@ layout: default
permalink: /contact.html
description: 'How to contact me.'
---
{% capture css %}
{% render "../assets/styles/widgets/forms.css" %}
{% render "../assets/styles/pages/contact.css" %}
{% endcapture %}
<style>
{{ css | cssmin }}
</style>
<h2 class="page__header">{{ title }}</h2>
<div class="contact__wrapper">
<div class="column contact__description">

View file

@ -8,6 +8,7 @@ permalink: /search.html
<link href="https://coryd.dev/pagefind/pagefind-ui.css" rel="stylesheet" />
{% capture css %}
{% render "../assets/styles/widgets/pagefind.css" %}
{% render "../assets/styles/widgets/forms.css" %}
{% endcapture %}
<style>
{{ css | cssmin }}

View file

@ -4,7 +4,12 @@ layout: default
permalink: /webrings.html
description: "Webrings are awesome! These are the ones I'm a member of."
---
{% capture css %}
{% render "../assets/styles/pages/webrings.css" %}
{% endcapture %}
<style>
{{ css | cssmin }}
</style>
<h2
class="m-0 text-xl font-black leading-tight tracking-normal dark:text-white md:text-2xl mb-2"
>