Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #366 from rgaiacs/google-calendar
Add link to template for Google Calendar event
  • Loading branch information
Raniere Silva authored and GitHub committed Feb 18, 2017
2 parents fb000db + aa9bfed commit acba9ca
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions index.html
Expand Up @@ -111,6 +111,19 @@ and the administrator will contact you if we need any extra information.</h4>
</p>
{% endif %}

<!--
DATE
This block displays the date and links to Google Calendar.
-->
{% if page.humandate %}
<p id="when">
<strong>When:</strong>
{{page.humandate}}.
<a href="//calendar.google.com/calendar/render?action=TEMPLATE&text={% if page.carpentry == "swc" %}Software{% elsif page.carpentry == "dc" %}Data{% endif %} Carpentry Workshop&dates={{ page.startdate | replace: "-", "" }}/{{ page.enddate | replace: "-", "" }}&trp=false&sprop&sprop=name:&sf=true&output=xml&location={{ page.address }}&details={% if page.carpentry == "swc" %}Software{% elsif page.carpentry == "dc" %}Data{% endif %} Carpentry Workshop at {{ page.venue }}">Add to your Google Calendar.</a>
</p>
{% endif %}

<!--
SPECIAL REQUIREMENTS
Expand Down

0 comments on commit acba9ca

Please sign in to comment.