feat: book tags
This commit is contained in:
parent
f32ae93be5
commit
fdee04494b
3 changed files with 9 additions and 6 deletions
|
@ -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,' ')
|
||||
|
|
|
@ -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'
|
||||
}
|
|
@ -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": {
|
||||
|
|
Reference in a new issue