From cc4fd8b7edb0e926eaf96093cd4fc5f21969fa0f Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Fri, 2 Aug 2024 20:17:45 -0700 Subject: [PATCH] fix: handle venues w/out lat/long --- package-lock.json | 4 ++-- package.json | 2 +- src/pages/dynamic/concerts.html | 11 ++++++++++- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3179b88f..597ec7f9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "coryd.dev", - "version": "21.2.2", + "version": "21.2.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "coryd.dev", - "version": "21.2.2", + "version": "21.2.3", "license": "MIT", "dependencies": { "@cdransf/api-text": "^1.4.0", diff --git a/package.json b/package.json index d06cd479..718244c3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "21.2.2", + "version": "21.2.3", "description": "The source for my personal site. Built using 11ty (and other tools).", "type": "module", "scripts": { diff --git a/src/pages/dynamic/concerts.html b/src/pages/dynamic/concerts.html index c32e2d28..becf3f49 100644 --- a/src/pages/dynamic/concerts.html +++ b/src/pages/dynamic/concerts.html @@ -21,9 +21,18 @@ permalink: "/music/concerts/{% if pagination.pageNumber > 0 %}{{ pagination.page {{ concert.artist.name }} {% endif %} {%- endcapture -%} + {%- capture venue -%} + {% if concert.venue.name %} + {% if concert.venue.latitude and concert.venue.longitude %} + {{ concert.venue.name | formatVenue }} + {% else %} + {{ concert.venue.name | formatVenue }} + {% endif %} + {% endif %} + {%- endcapture -%}
  • {{ artistName }} on {{ concert.date | date: "%B %e, %Y" }} - {% if concert.venue.name %} at {{ concert.venue.name | formatVenue }}{% endif %} + {% if venue %} at {{ venue }}{% endif %}
  • {% endfor %}