Reorganize CSS structure #12

Merged
wonderfulfrog merged 5 commits from feat/css-reorg into main 2025-03-21 15:03:38 -07:00
wonderfulfrog commented 2025-03-16 18:18:07 -07:00 (Migrated from github.com)
  • Moves all CSS code into 11ty's includes directory (also renamed to `includes' from '_includes'
  • Renames data dir to data
  • Creates a new filter postcss for running PostCSS on any CSS code
  • Probably some other tidying I'm forgetting about

Why?

I ended up following this structure on another website I built and really liked it. I found the organization strategy made a lot of sense.

I've also wanted to inline my CSS for a while now. There are a few ways to accomplish this, and using a filter felt like the most "Eleventy way" of doing it.

- Moves all CSS code into 11ty's includes directory (also renamed to `includes' from '_includes' - Renames data dir to `data` - Creates a new filter `postcss` for running PostCSS on any CSS code - Probably some other tidying I'm forgetting about ## Why? I ended up following this structure on another website I built and really liked it. I found the organization strategy made a lot of sense. I've also wanted to inline my CSS for a while now. There are a few ways to accomplish this, and using a filter felt like the most "Eleventy way" of doing it.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: wonderfulfrog/wonderfulfrog.com#12
No description provided.