feat: add ratings
This commit is contained in:
parent
c37fc2f1a3
commit
614d1e210c
13 changed files with 98 additions and 66 deletions
|
@ -16,8 +16,13 @@
|
|||
</image>
|
||||
{% for entry in entries limit: 20 -%}
|
||||
{% assign author = entry.url | stripUtm | authorLookup %}
|
||||
{% assign rating = entry.rating %}
|
||||
<item>
|
||||
<title>{{ entry.title | escape }}{% if author %} via {{ author }}{% endif %}</title>
|
||||
<title>
|
||||
{{ entry.title | escape }}
|
||||
{% if author %} via {{ author }}{% endif %}
|
||||
{% if rating %} ({{ rating }}){% endif %}
|
||||
</title>
|
||||
<link>{{ entry.url | stripUtm | encodeAmp }}</link>
|
||||
<pubDate>{{ entry.date | stringToRFC822Date }}</pubDate>
|
||||
<guid>{{ entry.url | stripUtm | encodeAmp }}</guid>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<div class="media-grid {% if shape == 'square' %}square{% else %}vertical{% endif %}">
|
||||
{% for item in media limit: count %}
|
||||
{% assign alt = item.alt | strip | escape %}
|
||||
{% assign hasMeta = item.type != 'book' and item.type != 'movie' %}
|
||||
{% assign hasMeta = item.type != 'book' %}
|
||||
<a href="{{ item.url | stripUtm }}" title="{{ alt }}">
|
||||
<div class="item-wrapper{% if hasMeta %} shadow{% endif %}">
|
||||
{% if hasMeta %}
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
{% capture alt %}{{ movie.title | escape }} ({{ movie.year }}){% endcapture %}
|
||||
<a href="{{ movie.url }}">
|
||||
<div class="watching hero shadow">
|
||||
<span>{{ movie.title }} ({{ movie.year }})</span>
|
||||
<div class="meta-text">
|
||||
<div class="header">{{ movie.title }} ({{ movie.year }})</div>
|
||||
<div class="subheader">Last watched @ {{ movie.dateAdded | date: "%B %e, %Y" }}</div>
|
||||
</div>
|
||||
<img src="https://coryd.dev/.netlify/images/?url={{ movie.backdrop }}&fit=cover&w=1200&h=675&fm=webp&q=80" alt="{{ alt }}" loading="eager" decoding="async" width="1200" height="765" />
|
||||
</div>
|
||||
</a>
|
Reference in a new issue