From b8d401c7da7e9cad0856e90669bec17be9f525ed Mon Sep 17 00:00:00 2001 From: Saskia Hiltemann Date: Fri, 5 Jul 2024 14:35:51 +0200 Subject: [PATCH] fix location formatting --- _includes/calendar-buttons.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/_includes/calendar-buttons.html b/_includes/calendar-buttons.html index 816f74905eaaea..26d1e34989d93e 100644 --- a/_includes/calendar-buttons.html +++ b/_includes/calendar-buttons.html @@ -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 %} Google