diff --git a/config/collections/index.js b/config/collections/index.js index 2f31dd30..03f97946 100644 --- a/config/collections/index.js +++ b/config/collections/index.js @@ -80,7 +80,12 @@ export const allContent = (collection) => { } if (item?.['link']) content['url'] = item?.['link'] if (item?.['slug']) content['url'] = new URL(item['slug'], BASE_URL).toString() - if (item?.['description']) content['description'] = `${item['description'].split(' ').slice(0, 100).join(' ')}...

` + if (item?.['description']) { + content['description'] = `${item['description'].split(' ').slice(0, 25).join(' ')}...

` + } else { + content['description'] = '' + } + const date = getDate ? parseDate(getDate(item)) : null if (date) content['date'] = date aggregateContent.push(content) diff --git a/package-lock.json b/package-lock.json index 30b20fd1..5a7925a9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "coryd.dev", - "version": "19.5.10", + "version": "19.5.12", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "coryd.dev", - "version": "19.5.10", + "version": "19.5.12", "license": "MIT", "dependencies": { "@cdransf/api-text": "^1.4.0", @@ -532,9 +532,9 @@ "peer": true }, "node_modules/@types/node": { - "version": "20.14.6", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.14.6.tgz", - "integrity": "sha512-JbA0XIJPL1IiNnU7PFxDXyfAwcwVVrOoqyzzyQTyMeVhBzkJVMSkC1LlVsRQ2lpqiY4n6Bb9oCS6lzDKVQxbZw==", + "version": "20.14.7", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.14.7.tgz", + "integrity": "sha512-uTr2m2IbJJucF3KUxgnGOZvYbN0QgkGyWxG6973HCpMYFy2KfcgYuIwkJQMQkt1VbBMlvWRbpshFTLxnxCZjKQ==", "dev": true, "license": "MIT", "dependencies": { @@ -1149,9 +1149,9 @@ "license": "MIT" }, "node_modules/electron-to-chromium": { - "version": "1.4.806", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.806.tgz", - "integrity": "sha512-nkoEX2QIB8kwCOtvtgwhXWy2IHVcOLQZu9Qo36uaGB835mdX/h8uLRlosL6QIhLVUnAiicXRW00PwaPZC74Nrg==", + "version": "1.4.807", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.807.tgz", + "integrity": "sha512-kSmJl2ZwhNf/bcIuCH/imtNOKlpkLDn2jqT5FJ+/0CXjhnFaOa9cOe9gHKKy71eM49izwuQjZhKk+lWQ1JxB7A==", "dev": true, "license": "ISC" }, @@ -2405,9 +2405,9 @@ "license": "BSD-3-Clause" }, "node_modules/morphdom": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/morphdom/-/morphdom-2.7.2.tgz", - "integrity": "sha512-Dqb/lHFyTi7SZpY0a5R4I/0Edo+iPMbaUexsHHsLAByyixCDiLHPHyVoKVmrpL0THcT7V9Cgev9y21TQYq6wQg==", + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/morphdom/-/morphdom-2.7.3.tgz", + "integrity": "sha512-rvGK92GxSuPEZLY8D/JH07cG3BxyA+/F0Bxg32OoGAEFFhGWA3OqVpqPZlOgZTCR52clXrmz+z2pYSJ6gOig1w==", "dev": true, "license": "MIT" }, diff --git a/package.json b/package.json index 05518822..877c9099 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "19.5.11", + "version": "19.5.12", "description": "The source for my personal site. Built using 11ty.", "type": "module", "scripts": { diff --git a/src/_includes/partials/media/watching/hero.liquid b/src/_includes/partials/media/watching/hero.liquid index 6433757f..4bb7de9f 100644 --- a/src/_includes/partials/media/watching/hero.liquid +++ b/src/_includes/partials/media/watching/hero.liquid @@ -3,7 +3,12 @@
{{ movie.title }} ({{ movie.year }})
-
Last watched @ {{ movie.dateAdded | date: "%B %e, %Y" }}
+
+ Last watched @ {{ movie.dateAdded | date: "%B %e, %Y" }} + {%- if movie.rating -%} + ({{ movie.rating }}) + {%- endif -%} +
{{ title }} {% render "partials/media/watching/hero.liquid" movie:featuredMovie %}

Here's all of the TV and movies I've been watching presented in what is (hopefully) an organized fashion. You can also take a look at the movies and shows I'm planning to watch.