Github: Difference between revisions

636 bytes removed ,  20 February 2025
m
replace references to meetup with zeffy; document posts.json fields
No edit summary
m (replace references to meetup with zeffy; document posts.json fields)
 
Line 30: Line 30:
<pre>
<pre>
{
{
"title": "Tenth Annual Hacksburg Cider Making",
"title": "Woodworking 101",
"subtitle": "Fresh, all-natural, and delicious!",
"subtitle": "Make sawdust (and a wooden box) in Hacksburg's woodshop",
"description": "<p>Come to Hacksburg with apples and you'll be able to make your own cider! The best kind of apples to bring is a variety, only using one type typically results in extremely sweet or tart cider. Ten pounds of apples makes three quarts of cider. Free to anyone in the community, no RSVP required.</p><p>Want more information? We go into the cidermaking process in detail here: <a href=\"https://hb.gy/0nAyF\" target=\"_blank\">https://hb.gy/0nAyF</a>.</p><p>Cider making is for attendees of all ages. If you are bringing an attendee under 18, you (the parent/guardian) must stay the whole time your child/dependent is there.</p>",
"description": "<p>Attendees will have the opportunity to make a simple wooden box with handles and a lid. This project is designed to utilize almost all of the woodworking tools Hacksburg offers and provide a great introduction to woodworking.</p><p>To cover the cost of wood, this class will include a $30 materials fee.</p><p>Ages 16+. Attendees under 18 must be accompanied by a parent or guardian at all times.</p>",
"date": "2024-10-20",
"date": "2025-02-16",
"start_time": "1:00pm",
"start_time": "01:00pm",
"end_time": "4:00pm",
"end_time": "04:00pm",
"offsite_location": null,
"offsite_location": null,
"offered_online": false,
"offered_online": false,
"offered_in_person": true,
"offered_in_person": true,
"member_price": 0,
"member_price": 0,
"non_member_price": 0,
"non_member_price": 5,
"image": "2018_cidermaking.jpg",
"materials_fee": 30,
"meetup_link": "https://www.meetup.com/hacksburgva/events/302852557/",
"image": "wooden_box_2.jpg",
"cancelled": false
"zeffy_link": "https://www.zeffy.com/en-US/ticketing/woodworking--101",
}
"cancelled": false,
"sold_out": false
},
</pre>
</pre>


The build.py script uses these variables to build index.html automatically.
The build.py script uses these variables to build index.html automatically.
Post images are stored in [https://github.com/Hacksburg/hacksburg.github.io/blob/master/resources/images /resources/images]. You can reference an existing image in your post, or add a new one.
Post images are stored in [https://github.com/Hacksburg/hacksburg.github.io/blob/master/resources/images /resources/images]. You can reference an existing image in your post, or add a new one.
=== Building Posts Automatically from Meetup Data ===
For your convenience, a [https://github.com/Hacksburg/hacksburg.github.io/blob/master/rss_to_json.ipynb Python notebook] is provided that scrapes [https://www.meetup.com/hacksburgva/ Hacksburg's Meetup page] to generate posts in the posts.json format. Note: For this script to work, you must be logged into Meetup. It is recommended that you preview your post(s) before creating a new pull request.


=== Previewing Posts ===
=== Previewing Posts ===
20

edits