feat: book tags

This commit is contained in:
Cory Dransfeldt 2024-04-20 13:36:20 -07:00
parent f32ae93be5
commit fdee04494b
No known key found for this signature in database
3 changed files with 9 additions and 6 deletions

View file

@ -74,8 +74,7 @@ export const tagMap = (collection) => {
if (books) {
books.forEach((book) => {
const tagString = book.['tags']?
.map((tag) => tagAliases[tag.toLowerCase()])
const tagString = book['tags']?.map((tag) => tagAliases[tag.toLowerCase()])
.join(' ')
.trim()
if (tagString) tags[book.url] = tagString.replace(/\s+/g,' ')

View file

@ -14,6 +14,7 @@ export default {
email: '#Email',
emo: '#Emo',
fastmail: '#Email',
fiction: '#Fiction',
gmail: '#Email',
grindcore: '#Grindcore',
health: '#Health',
@ -28,6 +29,7 @@ export default {
mastodon: '#Mastodon',
music: '#Music',
nonfiction: '#NonFiction',
politics: '#Politics',
privacy: '#Privacy',
productivity: '#Productivity',
react: '#JavaScript',
@ -39,6 +41,8 @@ export default {
'surveillance capitalism': '#SurveillanceCapitalism',
'tattoos': '#Tattoos',
tech: '#Tech',
television: '#TV',
technology: '#Tech',
tv: '#TV',
'web components': '#WebComponents'
}

View file

@ -1,6 +1,6 @@
{
"name": "coryd.dev",
"version": "12.2.10",
"version": "12.3.0",
"description": "The source for my personal site. Built using 11ty.",
"type": "module",
"scripts": {