From 01294420b3ed4d75ec722efe75d31a7215cf4068 Mon Sep 17 00:00:00 2001 From: Erik van der Bas Date: Tue, 14 May 2024 09:34:00 +0200 Subject: [PATCH] feat: rename static to assets. (#157) - 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 --- README.md | 2 +- assets/fonts/.gitkeep | 0 assets/images/.gitkeep | 0 {static => assets/scripts}/site.js | 0 assets/styles/.gitkeep | 0 static/no-timber.html | 10 ---------- 6 files changed, 1 insertion(+), 11 deletions(-) create mode 100644 assets/fonts/.gitkeep create mode 100644 assets/images/.gitkeep rename {static => assets/scripts}/site.js (100%) create mode 100644 assets/styles/.gitkeep delete mode 100644 static/no-timber.html diff --git a/README.md b/README.md index 0a32885c0..e8a1a6d1c 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/assets/fonts/.gitkeep b/assets/fonts/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/assets/images/.gitkeep b/assets/images/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/static/site.js b/assets/scripts/site.js similarity index 100% rename from static/site.js rename to assets/scripts/site.js diff --git a/assets/styles/.gitkeep b/assets/styles/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/static/no-timber.html b/static/no-timber.html deleted file mode 100644 index b99c04bc6..000000000 --- a/static/no-timber.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - Timber not active - - - -

Timber not activated

- -