chore: move concerts into music directory

This commit is contained in:
Cory Dransfeldt 2024-08-04 17:29:58 -07:00
parent d11d7bed15
commit 372d80f2fe
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View file

@ -0,0 +1,43 @@
---
title: Concerts
description: These are concerts I've attended (not all of them — just the ones I could remember or glean from emails, photo metadata et al).
layout: default
pagination:
data: concerts
size: 30
permalink: "/music/concerts/{% if pagination.pageNumber > 0 %}{{ pagination.pageNumber }}/{% endif %}index.html"
---
{% if pagination.pageNumber == 0 %}
<h2 class="page-header">Concerts</h2>
<p>These are concerts I've attended (not all of them — just the ones I could remember or glean from emails, photo metadata et al). I've been to at least <strong class="highlight-text">{{ concerts | size }}</strong> shows. <a href="/music">You can also take a look at the music I've been listening to lately</a>.</p>
<hr />
{% endif %}
<ul class="concert-list">
{% for concert in pagination.items %}
{%- capture artistName -%}
{% if concert.artistNameString %}
{{ concert.artistNameString }}
{% else %}
<a href="{{ concert.artistUrl }}">{{ concert.artist.name }}</a>
{% endif %}
{%- endcapture -%}
{%- capture venue -%}
{% if concert.venue.name %}
{% if concert.venue.latitude and concert.venue.longitude %}
<a href="https://www.openstreetmap.org/?mlat={{ concert.venue.latitude }}&mlon={{ concert.venue.longitude }}#map=18/{{ concert.venue.latitude }}/{{ concert.venue.longitude }}">{{ concert.venue.name | formatVenue }}</a>
{% else %}
{{ concert.venue.name | formatVenue }}
{% endif %}
{% endif %}
{%- endcapture -%}
<li>
{{ artistName }} on <strong class="highlight-text">{{ concert.date | date: "%B %e, %Y" }}</strong>
{% if venue %} at {{ venue }}{% endif %}
{% if concert.notes %}
{% assign notes = concert.notes | prepend: "### Notes\n" | markdown %}
{% render "partials/blocks/modal.liquid", label:"Concert info", icon:"info-circle", content:notes, id:concert.id %}
{% endif %}
</li>
{% endfor %}
</ul>
{% render "partials/nav/paginator.liquid", pagination:pagination %}