diff --git a/api/now-playing.js b/api/now-playing.js
index a3e21748..cba8ae80 100644
--- a/api/now-playing.js
+++ b/api/now-playing.js
@@ -21,6 +21,7 @@ const emojiMap = (genre, artist) => {
if (normalizedArtist === "bolt thrower") return "βοΈ"
if (normalizedArtist === "bruce springsteen") return "πΊπΈ"
if (normalizedArtist === "carcass") return "π₯Ό"
+ if (normalizedArtist === "cloud") return "βοΈπ"
if (normalizedArtist === "counting crows") return "π¦ββ¬"
if (normalizedArtist === "david bowie") return "π¨π»βπ€"
if (normalizedArtist === "devoid of thought") return "π«π"
diff --git a/config/collections/index.js b/config/collections/index.js
index 3423fa8c..72d8030c 100644
--- a/config/collections/index.js
+++ b/config/collections/index.js
@@ -1,3 +1,4 @@
+import authors from '../data/author-map.js'
import tagAliases from '../data/tag-aliases.js'
import { DateTime } from 'luxon'
@@ -45,12 +46,19 @@ export const allContent = (collection) => {
if (!parsedDate.isValid) parsedDate = DateTime.fromFormat(date, 'dd-MM-yyyy')
return parsedDate.isValid ? parsedDate.toISO() : null
}
+ const authorLookup = (url) => {
+ if (!url) return null
+ const urlObject = new URL(url)
+ const baseUrl = urlObject.origin
+ return authors?.[baseUrl] || null
+ }
const addContent = (items, icon, getTitle, getDate) => {
if (items) {
items.forEach(item => {
+ const author = authorLookup(item.data?.link)
const content = {
url: item.url?.includes('http') ? item.url : `https://coryd.dev${item.url}`,
- title: `${icon}: ${getTitle(item)}`
+ title: `${icon}: ${getTitle(item)}${author ? ' via ' + author : ''}`
}
if (item.data?.link) content.url = item.data?.link
if (item.data?.description) content.description = `${item.data.description}
`
diff --git a/package-lock.json b/package-lock.json
index 5ae90e1b..2cca5a49 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "coryd.dev",
- "version": "16.7.0",
+ "version": "16.7.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "coryd.dev",
- "version": "16.7.0",
+ "version": "16.7.1",
"license": "MIT",
"dependencies": {
"@cdransf/api-text": "^1.2.2",
@@ -2470,9 +2470,9 @@
}
},
"node_modules/@supabase/postgrest-js": {
- "version": "1.15.2",
- "resolved": "https://registry.npmjs.org/@supabase/postgrest-js/-/postgrest-js-1.15.2.tgz",
- "integrity": "sha512-9/7pUmXExvGuEK1yZhVYXPZnLEkDTwxgMQHXLrN5BwPZZm4iUCL1YEyep/Z2lIZah8d8M433mVAUEGsihUj5KQ==",
+ "version": "1.15.3",
+ "resolved": "https://registry.npmjs.org/@supabase/postgrest-js/-/postgrest-js-1.15.3.tgz",
+ "integrity": "sha512-kvfFhuurvnn7+XoXvwb6j64BqqS/xguXfM5FY8xPK24Kza+Bl4NPxGSMu3NWZiWPBgW2C27X2yHz/T+VYlXkEA==",
"dev": true,
"dependencies": {
"@supabase/node-fetch": "^2.6.14"
@@ -2500,15 +2500,15 @@
}
},
"node_modules/@supabase/supabase-js": {
- "version": "2.43.2",
- "resolved": "https://registry.npmjs.org/@supabase/supabase-js/-/supabase-js-2.43.2.tgz",
- "integrity": "sha512-F9CljeJBo5aPucNhrLoMnpEHi5yqNZ0vH0/CL4mGy+/Ggr7FUrYErVJisa1NptViqyhs1HGNzzwjOYG6626h8g==",
+ "version": "2.43.3",
+ "resolved": "https://registry.npmjs.org/@supabase/supabase-js/-/supabase-js-2.43.3.tgz",
+ "integrity": "sha512-jrlx9sIty4lpG9ukhD9wimzHrFzeLTq/JKhqDqVLKo449NYlZbpcnmhqSjfZmve/0mIq1rbYmVvKQ90Hq4/cVg==",
"dev": true,
"dependencies": {
"@supabase/auth-js": "2.64.2",
"@supabase/functions-js": "2.3.1",
"@supabase/node-fetch": "2.6.15",
- "@supabase/postgrest-js": "1.15.2",
+ "@supabase/postgrest-js": "1.15.3",
"@supabase/realtime-js": "2.9.5",
"@supabase/storage-js": "2.5.5"
}
@@ -2822,9 +2822,9 @@
}
},
"node_modules/caniuse-lite": {
- "version": "1.0.30001620",
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001620.tgz",
- "integrity": "sha512-WJvYsOjd1/BYUY6SNGUosK9DUidBPDTnOARHp3fSmFO1ekdxaY6nKRttEVrfMmYi80ctS0kz1wiWmm14fVc3ew==",
+ "version": "1.0.30001621",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001621.tgz",
+ "integrity": "sha512-+NLXZiviFFKX0fk8Piwv3PfLPGtRqJeq2TiNoUff/qB5KJgwecJTvCXDpmlyP/eCI/GUEmp/h/y5j0yckiiZrA==",
"dev": true,
"funding": [
{
@@ -4854,30 +4854,18 @@
"dev": true
},
"node_modules/micromatch": {
- "version": "4.0.6",
- "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.6.tgz",
- "integrity": "sha512-Y4Ypn3oujJYxJcMacVgcs92wofTHxp9FzfDpQON4msDefoC0lb3ETvQLOdLcbhSwU1bz8HrL/1sygfBIHudrkQ==",
+ "version": "4.0.7",
+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.7.tgz",
+ "integrity": "sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==",
"dev": true,
"dependencies": {
"braces": "^3.0.3",
- "picomatch": "^4.0.2"
+ "picomatch": "^2.3.1"
},
"engines": {
"node": ">=8.6"
}
},
- "node_modules/micromatch/node_modules/picomatch": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz",
- "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==",
- "dev": true,
- "engines": {
- "node": ">=12"
- },
- "funding": {
- "url": "https://github.com/sponsors/jonschlinkert"
- }
- },
"node_modules/mime": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/mime/-/mime-3.0.0.tgz",
diff --git a/package.json b/package.json
index 4d0d14ba..5e368006 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "coryd.dev",
- "version": "16.7.0",
+ "version": "16.7.1",
"description": "The source for my personal site. Built using 11ty.",
"type": "module",
"scripts": {
diff --git a/src/assets/styles/base/index.css b/src/assets/styles/base/index.css
index 06387410..7f413fc1 100644
--- a/src/assets/styles/base/index.css
+++ b/src/assets/styles/base/index.css
@@ -490,6 +490,8 @@ button {
/* selects */
select {
+ color: var(--text-color);
+ background-color: var(--background-color);
padding: var(--sizing-xs) var(--sizing-sm);
}