chore: more books + bump deps

This commit is contained in:
Cory Dransfeldt 2024-08-06 07:42:09 -07:00
parent 2722fd40f4
commit 6da001328b
No known key found for this signature in database
5 changed files with 15 additions and 15 deletions

View file

@ -235,7 +235,7 @@ export default {
const dataSlice = data.slice(0, count) const dataSlice = data.slice(0, count)
let last; 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'] if (dataSlice.length === 1) return type === 'genre' ? dataSlice[0] : dataSlice[0]['artist_name']
const allButLast = dataSlice.slice(0, -1).map(item => { const allButLast = dataSlice.slice(0, -1).map(item => {

18
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "21.4.9", "version": "21.4.10",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "coryd.dev", "name": "coryd.dev",
"version": "21.4.9", "version": "21.4.10",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@cdransf/api-text": "^1.4.0", "@cdransf/api-text": "^1.4.0",
@ -21,7 +21,7 @@
"@11ty/eleventy-plugin-syntaxhighlight": "^5.0.0", "@11ty/eleventy-plugin-syntaxhighlight": "^5.0.0",
"@11tyrocks/eleventy-plugin-lightningcss": "^1.4.0", "@11tyrocks/eleventy-plugin-lightningcss": "^1.4.0",
"@cdransf/eleventy-plugin-tabler-icons": "^1.10.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", "dotenv-flow": "^4.1.0",
"liquidjs": "^10.16.1", "liquidjs": "^10.16.1",
"luxon": "^3.5.0", "luxon": "^3.5.0",
@ -473,9 +473,9 @@
} }
}, },
"node_modules/@supabase/supabase-js": { "node_modules/@supabase/supabase-js": {
"version": "2.45.0", "version": "2.45.1",
"resolved": "https://registry.npmjs.org/@supabase/supabase-js/-/supabase-js-2.45.0.tgz", "resolved": "https://registry.npmjs.org/@supabase/supabase-js/-/supabase-js-2.45.1.tgz",
"integrity": "sha512-j66Mfs8RhzCQCKxKogAFQYH9oNhRmgIdKk6pexguI2Oc7hi+nL9UNJug5aL1tKnBdaBM3h65riPLQSdL6sWa3Q==", "integrity": "sha512-/PVe3lXmalazD8BGMIoI7+ttvT1mLXy13lNcoAPtjP1TDDY83g8csZbVR6l+0/RZtvJxl3LGXfTJT4bjWgC5Nw==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@ -1146,9 +1146,9 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/electron-to-chromium": { "node_modules/electron-to-chromium": {
"version": "1.5.4", "version": "1.5.5",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.4.tgz", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.5.tgz",
"integrity": "sha512-orzA81VqLyIGUEA77YkVA1D+N+nNfl2isJVjjmOyrlxuooZ19ynb+dOlaDTqd/idKRS9lDCSBmtzM+kyCsMnkA==", "integrity": "sha512-QR7/A7ZkMS8tZuoftC/jfqNkZLQO779SSW3YuZHP4eXpj3EffGLFcB/Xu9AAZQzLccTiCV+EmUo3ha4mQ9wnlA==",
"dev": true, "dev": true,
"license": "ISC" "license": "ISC"
}, },

View file

@ -1,6 +1,6 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "21.4.9", "version": "21.4.10",
"description": "The source for my personal site. Built using 11ty (and other tools).", "description": "The source for my personal site. Built using 11ty (and other tools).",
"type": "module", "type": "module",
"scripts": { "scripts": {
@ -36,7 +36,7 @@
"@11ty/eleventy-plugin-syntaxhighlight": "^5.0.0", "@11ty/eleventy-plugin-syntaxhighlight": "^5.0.0",
"@11tyrocks/eleventy-plugin-lightningcss": "^1.4.0", "@11tyrocks/eleventy-plugin-lightningcss": "^1.4.0",
"@cdransf/eleventy-plugin-tabler-icons": "^1.10.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", "dotenv-flow": "^4.1.0",
"liquidjs": "^10.16.1", "liquidjs": "^10.16.1",
"luxon": "^3.5.0", "luxon": "^3.5.0",

View file

@ -77,7 +77,7 @@ const sortBooksByYear = (books) => {
years[year]['data'].push(book) 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 () { export default async function () {

View file

@ -16,9 +16,9 @@ schema: books-year
<a class="back-link-header link-icon" href="/books" title="Go back to the books index page">{% tablericon "arrow-left" "Go back to the books index page" %} Back to books</a> <a class="back-link-header link-icon" href="/books" title="Go back to the books index page">{% tablericon "arrow-left" "Go back to the books index page" %} Back to books</a>
<h2 class="page-header">{{ year.value }} / Books</h2> <h2 class="page-header">{{ year.value }} / Books</h2>
{% if yearString == currentYearString %} {% if yearString == currentYearString %}
<p>I've finished <strong class="highlight-text">{{ bookData.size }} books</strong> this year. Among my favorites are {{ favoriteBooks }}.</p> <p>I've finished <strong class="highlight-text">{{ bookData.size }} books</strong> this year.{%- if favoriteBooks %} Among my favorites are {{ favoriteBooks }}.{%- endif -%}</p>
{% else %} {% else %}
<p>I finished <strong class="highlight-text">{{ bookData.size }} books</strong> in <strong class="highlight-text">{{ year.value }}</strong>. Among my favorites were {{ favoriteBooks }}.</p> <p>I finished <strong class="highlight-text">{{ bookData.size }} books</strong> in <strong class="highlight-text">{{ year.value }}</strong>.{%- if favoriteBooks %} Among my favorites were {{ favoriteBooks }}.{%- endif -%}</p>
{% endif %} {% endif %}
<hr /> <hr />
{% render "partials/media/grid.liquid", data:bookData, shape: "vertical", count: 200, loading: "eager" %} {% render "partials/media/grid.liquid", data:bookData, shape: "vertical", count: 200, loading: "eager" %}