https://github.com/danopcode/hesitant
WordPress theme that adheres to those classic blog conventions and hesitantly looks at the new trends.
https://github.com/danopcode/hesitant
Last synced: about 1 month ago
JSON representation
WordPress theme that adheres to those classic blog conventions and hesitantly looks at the new trends.
- Host: GitHub
- URL: https://github.com/danopcode/hesitant
- Owner: DanOpcode
- License: mit
- Created: 2014-07-15T13:19:00.000Z (almost 12 years ago)
- Default Branch: trunk
- Last Pushed: 2023-05-04T18:58:52.000Z (about 3 years ago)
- Last Synced: 2025-06-16T05:06:00.301Z (12 months ago)
- Language: PHP
- Homepage:
- Size: 337 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hesitant
WordPress theme that adheres to those classic blog conventions and hesitantly
looks at the new trends.
Author: Daniel Jonsson, [matachi.se](http://matachi.se)
License: [MIT](LICENSE)
## Prerequisites
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](package.json) and [bower.json](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 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
## Dependencies
* [Bootstrap](http://getbootstrap.com/), licensed under the [MIT
License](https://github.com/twbs/bootstrap/blob/master/LICENSE).
* [Cookie Consent](https://silktide.com/tools/cookie-consent/), licensed under
the [MIT License](https://silktide.com/tools/cookie-consent/docs/license/).
## Additional credits
The header photo is available on
[Flickr](https://www.flickr.com/photos/iamsheep/13956131904/), it's taken by
[iamsheep](https://www.flickr.com/photos/iamsheep/) and it's licensed under [CC
BY 2.0](https://creativecommons.org/licenses/by/2.0/).