WordPress theme that adheres to those classic blog conventions and hesitantly looks at the new trends.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



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

Set up

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.

Continually build development version

$ 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.

Build deployment version

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.

Build POT file

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.

Export the SQL tables

First attach to the Docker container and then run:

$ mysqldump -u root --password="" wordpress | sed 's$),($),\n($g' > db.sql


Additional credits

The header photo is available on Flickr, it's taken by iamsheep and it's licensed under CC BY 2.0.