timber / starter-theme

The "_s" for Timber: a dead-simple theme that you can build anything from
MIT License
818 stars 278 forks source link

feat: rename static to assets. #157

Closed Levdbas closed 4 months ago

Levdbas commented 5 months ago

Related:

Issue

Since the creation of the starter theme a lot has happened in PHP, WordPress and Timber. I want to make the starter-theme a more modern starting point for custom theme development.

The static folder is not really the way to go anymore in modern WordPress theme development.

Solution

This particular PR focusses on renaming the static folder to assets, make a sub-structure with .gitkeep files and remove the no-timber.html file.

Impact

a better starting point to start your theme development workflow.

Usage Changes

No

Considerations

Testing

no

gchtr commented 4 months ago
  • the style.css file is included in the head.html. I find myself using the enqueue functions to add compiled css/js files that way. Maybe we could one day in the future introduce a basic setup for this as well?

Let’s stick to wp_enqueue_style(). We don’t have to invent our own way to do it.