feat: associate books and movies
This commit is contained in:
parent
c83aea01f8
commit
d1e3ab23bb
9 changed files with 72 additions and 9 deletions
|
@ -55,7 +55,7 @@ schema: movie
|
|||
{% if movie.artists.size > 1 %}
|
||||
I listen to artists featured in this movie!
|
||||
{% else %}
|
||||
I listen to the artist featured in this movie!
|
||||
I listen to the artist featured in this movie!
|
||||
{%- endif -%}
|
||||
{%- endcapture -%}
|
||||
<p id="artists" class="music">
|
||||
|
@ -69,6 +69,18 @@ schema: movie
|
|||
</ul>
|
||||
<hr />
|
||||
{%- endif -%}
|
||||
{%- if movie.books -%}
|
||||
<p id="books" class="books">
|
||||
{% tablericon "books" "Books" %}
|
||||
I've read about this movie!
|
||||
</p>
|
||||
<ul>
|
||||
{% for book in movie.books %}
|
||||
<li><a href="{{ book.url }}">{{ book.title }}</a> by {{ book.author }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<hr />
|
||||
{%- endif -%}
|
||||
{% if movie.description %}
|
||||
<h3>Overview</h3>
|
||||
{{ movie.description | markdown }}
|
||||
|
|
Reference in a new issue