Skip to content

Commit

Permalink
feat: rename static to assets. (#157)
Browse files Browse the repository at this point in the history
- Remove no-timber.html since it's no longer in use
- Introduce sub structure in the assets folder for modern development
- Update readme file to reflect these changes
  • Loading branch information
Levdbas committed May 14, 2024
1 parent 9d50b75 commit 0129442
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Small tip: You can make use of Composer’s [autoloading functionality](https://

## What else is there?

- `static/` is where you can keep your static front-end scripts, styles, or images. In other words, your Sass files, JS files, fonts, and SVGs would live here.
- `assets/` is where you can keep your front-end scripts, styles, or images. In other words, your Sass files, JS files, fonts, and SVGs would live here.
- `views/` contains all of your Twig templates. These pretty much correspond 1 to 1 with the PHP files that respond to the WordPress template hierarchy. At the end of each PHP template, you’ll notice a `Timber::render()` function whose first parameter is the Twig file where that data (or `$context`) will be used. Just an FYI.
- `tests/` ... basically don’t worry about (or remove) this unless you know what it is and want to.

Expand Down
Empty file added assets/fonts/.gitkeep
Empty file.
Empty file added assets/images/.gitkeep
Empty file.
File renamed without changes.
Empty file added assets/styles/.gitkeep
Empty file.
10 changes: 0 additions & 10 deletions static/no-timber.html

This file was deleted.

0 comments on commit 0129442

Please sign in to comment.