feat: associate movies and artists

This commit is contained in:
Cory Dransfeldt 2024-08-23 21:40:13 -07:00
parent b2eb6112ec
commit 7e1a55754b
No known key found for this signature in database
8 changed files with 99 additions and 37 deletions

View file

@ -93,7 +93,7 @@ schema: artist
{%- if artist.books -%}
<hr />
<p id="books" class="books">
{% tablericon "books" "books" %}
{% tablericon "books" "Books" %}
I've read about this artist!
</p>
<ul>
@ -102,7 +102,26 @@ schema: artist
{% endfor %}
</ul>
{%- endif -%}
{%- if artist.books or artist.concerts -%}<hr />{%- endif -%}
{%- if artist.movies -%}
{%- capture sectionTitle -%}
{% if artist.movies.size > 1 %}
I've watched a movie about this artist!
{% else %}
I've watched a movie about this artist!
{%- endif -%}
{%- endcapture -%}
<hr />
<p id="movies" class="movies">
{% tablericon "device-tv-old" "Movies" %}
{{ sectionTitle}}
</p>
<ul>
{% for movie in artist.movies %}
<li><a href="{{ movie.url }}">{{ movie.title }}</a> ({{ movie.year }})</li>
{% endfor %}
</ul>
{%- endif -%}
{%- if artist.books or artist.concerts or artist.movies -%}<hr />{%- endif -%}
<table>
<tr>
<th>Album</th>