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

Reorder twig files #162

Closed Levdbas closed 4 months ago

Levdbas commented 4 months ago

This is the first changes in a larger set of changes that I am going to propose.

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.

Solution

This particular PR focusses on moving twig files to subdirectories for make a separation between the type of twig files.

Impact

A better, less confusing, start with templating in Timber.

Usage Changes

none

Considerations

-archive.twig is still a bit overkill, maybe we can simplify that as well by removing the parent() function

Levdbas commented 4 months ago

@gchtr , modified the archive.twig and did some other minor tweaks, see comments.