WordPress theme that adheres to those classic blog conventions and hesitantly looks at the new trends.
Author: Daniel Jonsson, matachi.se
License: MIT
Instructions to install Docker, nodejs, npm and Grunt on Fedora:
$ sudo dnf install docker nodejs npm
$ sudo npm install -g grunt-cli
Start Docker:
$ sudo systemctl start docker
Install build tools and dependencies:
$ npm install
For a complete list of packages being installed, see package.json and bower.json.
The following two steps will create a Docker container with a complete LAMP stack and a WordPress blog running within it:
$ sudo docker build -t wordpress .
$ sudo docker run -i -t -p 80:80 -v `pwd`/dist:/var/www/html/wordpress/wp-content/themes/hesitant wordpress
The blog is then accessible at http://localhost/wordpress in your browser.
The username is admin
and the password is 123
.
$ grunt
This will start a local webserver, open the index page in your browser and
watch for file changes to livereload the browser page. The complete source code
of the theme can be found in the directory dist/
. Note that this requires the
Docker container to be running.
This option won't start any development environment but only build a deployable version of the theme.
$ grunt build
This will build a deployment version of the WordPress theme. The result can be
found in the directory dist/
. This Grunt task has minification of CSS and JS
turned on and some additional cleaning, which the development task doesn't.
Attach to the Docker container and run the following command inside it:
$ php /var/www/html/wordpress/tools/i18n/makepot.php wp-theme /var/www/html/wordpress/wp-content/themes/hesitant/ /var/www/html/wordpress/wp-content/themes/hesitant/hesitant.pot
The POT file is accessible outside the Docker container at dist/hesitant.pot
.
First attach to the Docker container and then run:
$ mysqldump -u root --password="" wordpress | sed 's$),($),\n($g' > db.sql
- Bootstrap, licensed under the MIT License.
- Cookie Consent, licensed under the MIT License.
The header photo is available on Flickr, it's taken by iamsheep and it's licensed under CC BY 2.0.