fix: show stars for favorite movies

This commit is contained in:
Cory Dransfeldt 2024-07-02 12:03:02 -07:00
parent c6b34cbba1
commit 8bd9b6fd06
No known key found for this signature in database
3 changed files with 6 additions and 8 deletions

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "19.9.1", "version": "19.9.2",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "coryd.dev", "name": "coryd.dev",
"version": "19.9.1", "version": "19.9.2",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@cdransf/api-text": "^1.4.0", "@cdransf/api-text": "^1.4.0",

View file

@ -1,6 +1,6 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "19.9.1", "version": "19.9.2",
"description": "The source for my personal site. Built using 11ty.", "description": "The source for my personal site. Built using 11ty.",
"type": "module", "type": "module",
"scripts": { "scripts": {

View file

@ -10,11 +10,9 @@
<div class="header">{{ item.title }}</div> <div class="header">{{ item.title }}</div>
<div class="subheader flex-centered"> <div class="subheader flex-centered">
{{ item.year }} {{ item.year }}
{% unless item.favorite %}
{% if item.rating %} {% if item.rating %}
<span class="rating"> ({{ item.rating }})</span> <span class="rating"> ({{ item.rating }})</span>
{% endif %} {% endif %}
{% endunless %}
</div> </div>
{% else %} {% else %}
<div class="header">{{ item.name }}</div> <div class="header">{{ item.name }}</div>