feat: add artists + genres to search

This commit is contained in:
Cory Dransfeldt 2024-08-06 15:31:51 -07:00
parent 49d91bb581
commit e687a6c414
No known key found for this signature in database
3 changed files with 5 additions and 3 deletions

View file

@ -132,6 +132,8 @@ export const processContent = (collection) => {
addItemToIndex(posts, '📝', (item) => new URL(item['slug'], BASE_URL).toString(), (item) => item['title'], (item) => item['tags'])
addItemToIndex(links, '🔗', (item) => item['link'], (item) => item['title'], (item) => item['tags'])
addItemToIndex(artists, '🎙️', (item) => item['url'], (item) => `${item['name']} (${item['country']}) - ${item['genre']}`, () => [])
addItemToIndex(genres, '🎵', (item) => item['url'], (item) => item['name'], () => [])
if (movieData) addItemToIndex(movieData, '🎥', (item) => item['url'], (item) => `${item['title']} (${item['rating']})`, (item) => item['tags'])
if (bookData) addItemToIndex(bookData, '📖', (item) => item['url'], (item) => `${item['title']} (${item['rating']})`, (item) => item['tags'])

4
package-lock.json generated
View file

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

View file

@ -1,6 +1,6 @@
{
"name": "coryd.dev",
"version": "21.5.3",
"version": "21.6.0",
"description": "The source for my personal site. Built using 11ty (and other tools).",
"type": "module",
"scripts": {