Lesson
What is Laravel Blade? Templates, layouts and components
Blade is Laravel's template language. It gives you HTML files with {{ }} for safely escaped output, @ directives for loops and conditions, layouts and components.
4 min read
Field notes
Journal
Notes from the Riksi studio in Melbourne. Plain guides on WordPress, Shopify, front-end code, speed and the tools I use every day.
Lesson
What is Laravel Blade? Templates, layouts and components
Blade is Laravel's template language. It gives you HTML files with {{ }} for safely escaped output, @ directives for loops and conditions, layouts and components.
4 min read
Trick
How to add a folder to your $PATH on Mac (zsh and bash)
Add export PATH="$HOME/.local/bin:$PATH" to ~/.zprofile and open a new Terminal window. Typing export on its own only changes the current window.
5 min read
Dev log
How to find the WordPress version of any site
Six ways to find which WordPress version a site runs, from the dashboard and WP-CLI to the page source and feed. Plus why hiding the version is not real security.
4 min read
Dev log
Gulp for Sass and JavaScript: a modern gulpfile
A Gulp 5 setup that compiles Sass, bundles and minifies JavaScript, adds source maps and watches for changes. Copy it into a WordPress theme or any project.
4 min read
Dev log
Git stash: how to save work and switch branches
git stash -u saves your uncommitted changes, including new files, and gives you a clean working tree. git stash pop brings them back.
4 min read
Dev log
Git cherry-pick: copy a commit to another branch
Switch to the branch that needs the change, find the commit hash, and run git cherry-pick . Git copies that one commit and merges nothing else.
4 min read
Dev log
Compile Sass (SCSS) with PHP using scssphp
Compile SCSS to CSS from PHP with scssphp. Install it with Composer, compile a file, pass in variables, cache the result, and know when I'd use Dart Sass.
4 min read
Lesson
Add a README.md to every project (with a template)
A good README tells the next developer what a project is, how to run it and how to deploy it. What I put in mine, a template to copy and the Markdown you need.
3 min read
Dev log
Manage WordPress with Composer
Install WordPress plugins and themes with Composer. I cover composer/installers, WPackagist, installer paths, autoloading your own code, and what to commit.
4 min read
Dev log
Run WordPress across local, staging and live environments
One codebase, three environments. I cover per-environment settings in wp-config.php, WP_ENVIRONMENT_TYPE, keeping secrets out of Git, and moving content.
4 min read