diff --git a/_includes/add-to-calendar-button.html b/_includes/add-to-calendar-button.html new file mode 100644 index 0000000..061533f --- /dev/null +++ b/_includes/add-to-calendar-button.html @@ -0,0 +1,21 @@ + + + diff --git a/_includes/upcoming-events.html b/_includes/upcoming-events.html index 86ab3fa..2309fac 100644 --- a/_includes/upcoming-events.html +++ b/_includes/upcoming-events.html @@ -71,7 +71,9 @@

{{ event.title }} - + +
+
+ + + {% assign uid = event.url %} + {% assign start_date = event.date | date: '%Y%m%dT%H%M%S' %} + {% assign end_date = event.end_date | date: '%Y%m%dT%H%M%S' %} + {% assign title = event.title %} + {% assign description = event.description %} + {% assign location = event.location %} + + {% include add-to-calendar-button.html uid=uid start_date=start_date end_date=end_date title=title description=description location=location %} + +
{% endfor %} - + \ No newline at end of file diff --git a/_layouts/event.html b/_layouts/event.html index ea1676d..8b9a63b 100644 --- a/_layouts/event.html +++ b/_layouts/event.html @@ -6,6 +6,7 @@ {% include nav.html %} + {% if page.custom_layout == false %}
{{ page.title }}
- +
@@ -35,10 +36,20 @@ -
+ + {% assign uid = page.url %} + {% assign start_date = page.date | date: '%Y%m%dT%H%M%S' %} + {% assign end_date = page.end_date | date: '%Y%m%dT%H%M%S' %} + {% assign title = page.title %} + {% assign description = page.description %} + {% assign location = page.location %} + + {% include add-to-calendar-button.html uid=uid start_date=start_date end_date=end_date title=title description=description location=location %} + {% else %}
{% endif %} @@ -51,10 +62,12 @@
{{content}}
+ {% else %} - {{content}} + {{ content }} {% endif %} + {% include footer.html %} diff --git a/_layouts/home.html b/_layouts/home.html index 12ae453..90b2126 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -139,4 +139,4 @@ - + \ No newline at end of file diff --git a/upcoming-events.markdown b/upcoming-events.markdown index b88cd18..a088f89 100644 --- a/upcoming-events.markdown +++ b/upcoming-events.markdown @@ -2,7 +2,6 @@ layout: default title: Upcoming Events permalink: /events/upcoming - ---
@@ -22,14 +21,14 @@ permalink: /events/upcoming {% elsif event_count == 2 %}
{% else %} -
+
{% endif %} {% for event in upcoming_events %}
- +
Show Less

- - -
- -
-
+ +
+ + + + + + + {% assign uid = event.url %} + {% assign start_date = event.date | date: '%Y%m%dT%H%M%S' %} + {% assign end_date = event.end_date | date: '%Y%m%dT%H%M%S' %} + {% assign title = event.title %} + {% assign description = event.description %} + {% assign location = event.location %} + + {% include add-to-calendar-button.html uid=uid start_date=start_date end_date=end_date title=title description=description location=location %} +
{% endfor %}