april
Wordpress theme based on Bootstrap 4
Features
- Responsive design
- Sticky posts in categories
- if there are posts marked as sticky, they are displayed as first posts on all pages of a category listing (e.g. if you have 5 posts per page and 2 sticky posts the page will show 7 posts)
- the default post listing (main query/landing page) is not altered (sticky posts will be displayed only on the first page)
- if a post has the tag sticky it will have an alternative color and no date displayed
Used libraries
Development
You need to have Ruby installed. Install RVM, enable it: source ~/.rvm/scripts/rvm
and use it rvm use
. You may need to install the proper ruby version.
If not yet available, you need to install Sass into it: gem install sass
.
To auto compile the SCSS to CSS, run the following in a terminal from the theme root:
sass -t compact --scss --watch sass/april.scss:css/april.css
To create the languages, do the following (needs the wordpress-core
checked out):
/home/alex/php /home/alex/projects/wordpress-core/tools/i18n/makepot.php wp-theme /home/alex/projects/github/april/
/home/alex/php
in this case references to the Docker image darignac/php:alpine:
#!/bin/bash
docker run --rm -i -v /home/alex:/home/alex -v $PWD:/code -w /code darignac/php:alpine php "$@"
Distribution
- for distribution, Grunt is used (required yarn and Grunt globally)
- it will copy the theme into a dist folder with all sass and js compiled and minimized (see
Gruntfile.js
for more info)
- it will copy the theme into a dist folder with all sass and js compiled and minimized (see
npm install
node_modules/.bin/grunt
- the version number is the version in
package.json
- as the
style.css
is created by sass and then minified, Grunt inserts the required Wordpress header into the minifiedstyle.css
- as the
- the theme does not meet the Wordpress requirements for a theme yet (haven't checked them)
- distribution is automatically done by TravisCI if a tag is created
Create a release
- adjust the version in
package.json
- ensure that all changes are added to the changelog in the
README.md
file with the correct version number - check if to update translations, if so, update the
pot
file and the translations - commit with a release message
- tag and push the tag and wait until TravisCI has released it
Continuous Integration
Changelog
- TBA
- Bugfixes
- fixed invalid escaped selector for anchor scrolling
- Bugfixes
- 2.0.2
- Bugfixes
- #51 Article date is always today
- Bugfixes
- 2.0.1
- Bugfixes
- #51 Article date is always today
- Bugfixes
- 2.0.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- Enhancements
- #36 show sticky posts on category listings on all pages
- Enhancements
- 1.3.1
- 1.3.0
- 1.2.0
- 1.1.1
- Enhancements
- Bugfixes
- Integration
- #23 releases are now built on travis
- 1.1.0
- 1.0.1
- 1.0.0
- initial release