How To Publish Cards
Use this when you add a new weekly card.
Steps
- Add the new images.
- Add or update the blog posts.
- Update
assets/js/cards-data.js. - Run:
cd "/Users/akonkia/Documents/New project/domeknadrzewie-github"
bash scripts/publish_cards.sh
Or, if you want to provide the commit message up front:
cd "/Users/akonkia/Documents/New project/domeknadrzewie-github"
bash scripts/publish_cards.sh "Add week 19 card"
What the script does
- rebuilds the urban bathing pages from
assets/js/cards-data.js - stages the card-related files
- ignores
.DS_Store - shows the staged changes
- asks for a commit message if you did not provide one
- asks whether to push to
origin/main
Files it prepares
assets/js/cards-data.jsmaterialy/kapiele_miejskie/index.htmlen/materials/urban-bathing/index.html- card images in
materialy/kapiele_miejskie/ - card images in
en/materials/urban-bathing/ - posts in
_posts/