diff --git a/config/filters/index.js b/config/filters/index.js index ada9c993..434b3512 100644 --- a/config/filters/index.js +++ b/config/filters/index.js @@ -235,7 +235,7 @@ export default { const dataSlice = data.slice(0, count) let last; - if (dataSlice.length === 0) return '' + if (dataSlice.length === 0) return null if (dataSlice.length === 1) return type === 'genre' ? dataSlice[0] : dataSlice[0]['artist_name'] const allButLast = dataSlice.slice(0, -1).map(item => { diff --git a/package-lock.json b/package-lock.json index 97ad3778..7fa7e635 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "coryd.dev", - "version": "21.4.9", + "version": "21.4.10", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "coryd.dev", - "version": "21.4.9", + "version": "21.4.10", "license": "MIT", "dependencies": { "@cdransf/api-text": "^1.4.0", @@ -21,7 +21,7 @@ "@11ty/eleventy-plugin-syntaxhighlight": "^5.0.0", "@11tyrocks/eleventy-plugin-lightningcss": "^1.4.0", "@cdransf/eleventy-plugin-tabler-icons": "^1.10.0", - "@supabase/supabase-js": "^2.45.0", + "@supabase/supabase-js": "^2.45.1", "dotenv-flow": "^4.1.0", "liquidjs": "^10.16.1", "luxon": "^3.5.0", @@ -473,9 +473,9 @@ } }, "node_modules/@supabase/supabase-js": { - "version": "2.45.0", - "resolved": "https://registry.npmjs.org/@supabase/supabase-js/-/supabase-js-2.45.0.tgz", - "integrity": "sha512-j66Mfs8RhzCQCKxKogAFQYH9oNhRmgIdKk6pexguI2Oc7hi+nL9UNJug5aL1tKnBdaBM3h65riPLQSdL6sWa3Q==", + "version": "2.45.1", + "resolved": "https://registry.npmjs.org/@supabase/supabase-js/-/supabase-js-2.45.1.tgz", + "integrity": "sha512-/PVe3lXmalazD8BGMIoI7+ttvT1mLXy13lNcoAPtjP1TDDY83g8csZbVR6l+0/RZtvJxl3LGXfTJT4bjWgC5Nw==", "dev": true, "license": "MIT", "dependencies": { @@ -1146,9 +1146,9 @@ "license": "MIT" }, "node_modules/electron-to-chromium": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.4.tgz", - "integrity": "sha512-orzA81VqLyIGUEA77YkVA1D+N+nNfl2isJVjjmOyrlxuooZ19ynb+dOlaDTqd/idKRS9lDCSBmtzM+kyCsMnkA==", + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.5.tgz", + "integrity": "sha512-QR7/A7ZkMS8tZuoftC/jfqNkZLQO779SSW3YuZHP4eXpj3EffGLFcB/Xu9AAZQzLccTiCV+EmUo3ha4mQ9wnlA==", "dev": true, "license": "ISC" }, diff --git a/package.json b/package.json index b0f02354..9eb82f5d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "21.4.9", + "version": "21.4.10", "description": "The source for my personal site. Built using 11ty (and other tools).", "type": "module", "scripts": { @@ -36,7 +36,7 @@ "@11ty/eleventy-plugin-syntaxhighlight": "^5.0.0", "@11tyrocks/eleventy-plugin-lightningcss": "^1.4.0", "@cdransf/eleventy-plugin-tabler-icons": "^1.10.0", - "@supabase/supabase-js": "^2.45.0", + "@supabase/supabase-js": "^2.45.1", "dotenv-flow": "^4.1.0", "liquidjs": "^10.16.1", "luxon": "^3.5.0", diff --git a/src/data/books.js b/src/data/books.js index 90c2d8f7..77d8c9eb 100644 --- a/src/data/books.js +++ b/src/data/books.js @@ -77,7 +77,7 @@ const sortBooksByYear = (books) => { years[year]['data'].push(book) } }) - return Object.values(years).filter(year => year.value > 2019) + return Object.values(years).filter(year => year.value > 2017) } export default async function () { diff --git a/src/pages/dynamic/books/year.html b/src/pages/dynamic/books/year.html index 251b115b..bfd88112 100644 --- a/src/pages/dynamic/books/year.html +++ b/src/pages/dynamic/books/year.html @@ -16,9 +16,9 @@ schema: books-year {% tablericon "arrow-left" "Go back to the books index page" %} Back to books
I've finished {{ bookData.size }} books this year. Among my favorites are {{ favoriteBooks }}.
+I've finished {{ bookData.size }} books this year.{%- if favoriteBooks %} Among my favorites are {{ favoriteBooks }}.{%- endif -%}
{% else %} -I finished {{ bookData.size }} books in {{ year.value }}. Among my favorites were {{ favoriteBooks }}.
+I finished {{ bookData.size }} books in {{ year.value }}.{%- if favoriteBooks %} Among my favorites were {{ favoriteBooks }}.{%- endif -%}
{% endif %}