-
Notifications
You must be signed in to change notification settings - Fork 18
Events
lorin edited this page Feb 21, 2018
·
3 revisions
Example structure:
content/
assets/
events/
15-16/
16-17/
battlebots/
main.md
intro.md
codenight.md
finale.md
awk.md
sed.md
ruby.md
index.erb
Every event is a .md
file with the following metadata tags:
Name | Type | Required |
---|---|---|
:title | String | yes |
:time | Date | yes |
:location | String | yes |
:description | String | no |
:created_at | Date | no |
:locationlink | String | no |
URL | no | |
:banner | URL | no |
:image | URL | no |
If there's a series of events (for example summer code nights) these can be grouped by creating a folder containing a main.md
, which will need the following metadata:
Name | Type | Required |
---|---|---|
:title | String | yes |
:location | String | no |
:banner | URL | no |
Other .md
files made in that folder are sub-events which need to fit the metadata description listed earlier
Events can be fetched from facebook using nanoc fetch [facebook event id]
. A file named .fb_token
containing an app token for facebook must be present.