feat: everything is related

This commit is contained in:
Cory Dransfeldt 2024-08-24 22:37:36 -07:00
parent d1e3ab23bb
commit 077c54d5fb
No known key found for this signature in database
20 changed files with 325 additions and 274 deletions

View file

@ -58,7 +58,10 @@ schema: artist
</p>
</div>
</div>
{% render "partials/blocks/associated-media.liquid", books:artist.books %}
{% render "partials/blocks/associated-media.liquid", movies:artist.movies %}
{%- if artist.description -%}
<h3>Overview</h3>
<div data-toggle-content class="text-toggle-hidden">{{ artist.description | markdown }}</div>
<button data-toggle-button>Show more</button>
{%- endif -%}
@ -90,37 +93,6 @@ schema: artist
{% endfor %}
</ul>
{%- endif -%}
{%- if artist.books -%}
<hr />
<p id="books" class="books">
{% tablericon "books" "Books" %}
I've read about this artist!
</p>
<ul>
{% for book in artist.books %}
<li><a href="{{ book.url }}">{{ book.title }}</a> by {{ book.author }}</li>
{% endfor %}
</ul>
{%- endif -%}
{%- if artist.movies -%}
{%- capture sectionTitle -%}
{% if artist.movies.size > 1 %}
I've watched movies 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>

View file

@ -26,15 +26,18 @@ schema: genre
<h2>{{ genre.name }}</h2>
<article class="genre-focus">
{%- if mediaLinks -%}
<p>My top <strong class="highlight-text">{{ genre.name }}</strong> artists {{ connectingWord }} {{ mediaLinks }}. I've listened to <strong class="highlight-text">{{ genre.total_plays | formatNumber }}</strong> tracks form this genre.</p>
<hr />
{% endif %}
<p>My top <strong class="highlight-text">{{ genre.name }}</strong> artists {{ connectingWord }} {{ mediaLinks }}. I've listened to <strong class="highlight-text">{{ genre.total_plays | formatNumber }}</strong> tracks form this genre.</p>
<hr />
{%- endif -%}
{% render "partials/blocks/associated-media.liquid", books:genre.books %}
{% render "partials/blocks/associated-media.liquid", movies:genre.movies %}
{%- if genre.description -%}
<div data-toggle-content class="text-toggle-hidden">
{{ genre.description | markdown }}
<p><a href="{{ genre.wiki_link }}">Continue reading at Wikipedia.</a></p>
<p><em>Wikipedia content provided under the terms of the <a href="https://creativecommons.org/licenses/by-sa/3.0/">Creative Commons BY-SA license</a></em></p>
</div>
<button data-toggle-button>Show more</button>
<h3>Overview</h3>
<div data-toggle-content class="text-toggle-hidden">
{{ genre.description | markdown }}
<p><a href="{{ genre.wiki_link }}">Continue reading at Wikipedia.</a></p>
<p><em>Wikipedia content provided under the terms of the <a href="https://creativecommons.org/licenses/by-sa/3.0/">Creative Commons BY-SA license</a></em></p>
</div>
<button data-toggle-button>Show more</button>
{%- endif -%}
</article>