You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
1 month ago | |
---|---|---|
fontello | 10 months ago | |
logo-sjablonen | 1 year ago | |
src | 1 month ago | |
.gitignore | 1 year ago | |
.gitlab-ci.yml | 1 year ago | |
.woodpecker.yml | 4 months ago | |
LICENSE | 1 year ago | |
LICENSE.fontello.txt | 10 months ago | |
LICENSE.mastodon-icon.txt | 10 months ago | |
README.md | 8 months ago | |
sync.sh | 1 year ago | |
test.sh | 1 year ago |
README.md
BIJ1 WordPress theme
This is a WordPress theme used at bij1.org, based on a theme called Okaia, and previously maintained by Multitude. Changes are initially tested on wp-staging.bij1.net.
There are a couple of theme settings that you can define as constants:
LOGO_BIG_PATH
: url of the big/wide logoLOGO_SMALL_PATH
: url of the small/mobile logoIS_MAIN_SITE
: whether this is bij1.org, used to toggle donation formNEWS_GRID_VIEW
: whether to show the news page as a grid (default = false)
Todo
- functional demands
- reverse engineer how the heck their build pipeline worked
- automate/document it
- refactor
- improve accessibility
- split off local-friendly version
- format/lint
Reproducing
src/fonts/BIJ1-*.woff*
: https://gitlab.com/bij1/bij1-fontsrc/fonts/fontello.*
,src/css/fontello.css
: loadfontello/config.json
on fontello.comsrc/acf.php
: export Advanced Custom Fields Pro fields to PHP
Deployment
Test
./test.sh
Backup
First back up actual server content to separate branches:
./sync.sh
Staging
HOST=wp-staging.bij1.net
rsync --rsync-path="sudo rsync" -avzhLP --delete ./src/* $HOST:/var/www/wordpress/wp-content/themes/BIJ1/
rsync --rsync-path="sudo rsync" -avzhLP --delete ./src/* $HOST:/var/www/amsterdam/wp-content/themes/BIJ1/
rsync --rsync-path="sudo rsync" -avzhLP --delete ./src/* $HOST:/var/www/amersfoort/wp-content/themes/BIJ1/
rsync --rsync-path="sudo rsync" -avzhLP --delete ./src/* $HOST:/var/www/denhaag/wp-content/themes/BIJ1/
rsync --rsync-path="sudo rsync" -avzhLP --delete ./src/* $HOST:/var/www/haarlem/wp-content/themes/BIJ1/
rsync --rsync-path="sudo rsync" -avzhLP --delete ./src/* $HOST:/var/www/hilversum/wp-content/themes/BIJ1/
rsync --rsync-path="sudo rsync" -avzhLP --delete ./src/* $HOST:/var/www/leiden/wp-content/themes/BIJ1/
rsync --rsync-path="sudo rsync" -avzhLP --delete ./src/* $HOST:/var/www/rotterdam/wp-content/themes/BIJ1/
Production
HOST=wp.bij1.net
rsync --rsync-path="sudo rsync" -avzhLP --delete ./src/* $HOST:/var/www/wordpress/wp-content/themes/BIJ1/
rsync --rsync-path="sudo rsync" -avzhLP --delete ./src/* $HOST:/var/www/almere/wp-content/themes/BIJ1/
rsync --rsync-path="sudo rsync" -avzhLP --delete ./src/* $HOST:/var/www/arnij/wp-content/themes/BIJ1/
rsync --rsync-path="sudo rsync" -avzhLP --delete ./src/* $HOST:/var/www/delft/wp-content/themes/BIJ1/
rsync --rsync-path="sudo rsync" -avzhLP --delete ./src/* $HOST:/var/www/denhaag/wp-content/themes/BIJ1/
rsync --rsync-path="sudo rsync" -avzhLP --delete ./src/* $HOST:/var/www/utrecht/wp-content/themes/BIJ1/
rsync --rsync-path="sudo rsync" -avzhLP --delete ./src/* $HOST:/var/www/zaanstreek/wp-content/themes/BIJ1/