Skip to content

Commit

Permalink
Merge pull request #5130 from galaxyproject/fixevents
Browse files Browse the repository at this point in the history
Fix location formatting
  • Loading branch information
nomadscientist authored Jul 5, 2024
2 parents ab104f9 + b8d401c commit 4b98618
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions _includes/calendar-buttons.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
{% assign eventurl = include.url | default: page.url | prepend: site.baseurl | prepend: site.url %}
{% assign eventname = include.name | default: page.title | default: ""%}

{% assign location = include.location | default: page.location %}

{% if location %}
{% assign location = location | format_location_simpler %}
{% assign location = "unspecified" %}
{% if include.location or page.location %}
{% assign location = include.location | default: page.location | format_location_simple %}
{% endif %}

<a href="https://calendar.google.com/calendar/render?action=TEMPLATE&dates={{startdate | date: '%Y%m%d'}}%2F{{enddate | date: '%Y%m%d'}}&details=Event%20Information%20{{eventurl}}&location={{location}}&text={{eventname}}" class="btn btn-info btn-sm" alt="Add to Google Calendar">Google</a>
Expand Down

0 comments on commit 4b98618

Please sign in to comment.