Created
May 12, 2014 22:03
-
-
Save budparr/ee901ba06f29cf1db637 to your computer and use it in GitHub Desktop.
Jekyll JSON generator for calendar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
layout: none | |
--- | |
{"events": [{% assign first = true %} | |
{% for post in site.data.events reversed %} | |
{% if first == false %},{% endif %} | |
{% if first == true %}{% assign first = false %}{% endif %} | |
{ | |
"name" : "{{ post.title }}", | |
"allday" : "{{ post.allday }}", | |
"start" : "{{ post.start }}", | |
"end" : "{{ post.end }}", | |
"starttime" : "{{ post.start | date: "%I:%M %p" | downcase }}", | |
"endtime" : "{{ post.end | date: "%I:%M %p" | downcase }}", | |
"venue" : "{{ post.venue }}", | |
"address" : "{{ post.address }}", | |
"citystate" : "{{ post.city-state }}", | |
"website" : "{{ post.website }}", | |
"url" : "{{ post.url }}", | |
"summary" : "{{ post.summary | strip_html }}" | |
} | |
{% endfor %} | |
]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment