diff --git a/config/filters/index.js b/config/filters/index.js index 2d72d6be..5e16ce1e 100644 --- a/config/filters/index.js +++ b/config/filters/index.js @@ -190,7 +190,7 @@ export default { normalized['alt'] = item['title'] normalized['rating'] = item['rating'] normalized['favorite'] = item['favorite'] - normalized['subtext'] = `${item['rating']} (${item['year']})` + normalized['subtext'] = item.rating ? `${item['rating']} (${item['year']})` : `(${item['year']})` } if (item['type'] === 'book') { normalized['title'] = `${item['title']} by ${item['author']}` diff --git a/package-lock.json b/package-lock.json index 804fda8c..09cc2f5f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "coryd.dev", - "version": "22.2.7", + "version": "22.2.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "coryd.dev", - "version": "22.2.7", + "version": "22.2.8", "license": "MIT", "dependencies": { "@cdransf/api-text": "^1.5.0", diff --git a/package.json b/package.json index 13245d3a..12aca13a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "22.2.7", + "version": "22.2.8", "description": "The source for my personal site. Built using 11ty (and other tools).", "type": "module", "scripts": {