Merge branch 'main' of git@github.com:cdransf/coryd.dev.git
This commit is contained in:
commit
63a9372c3a
7 changed files with 36 additions and 42 deletions
|
@ -158,6 +158,14 @@ module.exports = function (eleventyConfig) {
|
||||||
if (tagString) tags[url] = tagString
|
if (tagString) tags[url] = tagString
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
if (item.data.links) {
|
||||||
|
item.data.links.forEach((link) => {
|
||||||
|
const tagString = [...new Set(link.tags.map((tag) => tagAliases[tag.toLowerCase()]))]
|
||||||
|
.join(' ')
|
||||||
|
.trim()
|
||||||
|
if (tagString) tags[link.url] = tagString
|
||||||
|
})
|
||||||
|
}
|
||||||
})
|
})
|
||||||
return tags
|
return tags
|
||||||
})
|
})
|
||||||
|
|
2
cache/jsonfeed-to-mastodon-timestamp.json
vendored
2
cache/jsonfeed-to-mastodon-timestamp.json
vendored
|
@ -1,3 +1,3 @@
|
||||||
{
|
{
|
||||||
"timestamp": 1698616977239
|
"timestamp": 1698688993236
|
||||||
}
|
}
|
13
cache/jsonfeed-to-mastodon.json
vendored
13
cache/jsonfeed-to-mastodon.json
vendored
|
@ -6809,7 +6809,7 @@
|
||||||
"title": "📖: Elysium Fire",
|
"title": "📖: Elysium Fire",
|
||||||
"url": "https://app.thestorygraph.com/books/98b0dc33-48d2-4ff2-9d6c-9f58e28131d9",
|
"url": "https://app.thestorygraph.com/books/98b0dc33-48d2-4ff2-9d6c-9f58e28131d9",
|
||||||
"content_text": "📖: Elysium Fire #Books #NowReading #StoryGraph https://app.thestorygraph.com/books/98b0dc33-48d2-4ff2-9d6c-9f58e28131d9",
|
"content_text": "📖: Elysium Fire #Books #NowReading #StoryGraph https://app.thestorygraph.com/books/98b0dc33-48d2-4ff2-9d6c-9f58e28131d9",
|
||||||
"date_published": "Sun, 29 Oct 2023 20:03:12 +0000",
|
"date_published": "Mon, 30 Oct 2023 17:03:19 +0000",
|
||||||
"toots": [
|
"toots": [
|
||||||
"https://social.lol/users/cory/statuses/111286588479677459"
|
"https://social.lol/users/cory/statuses/111286588479677459"
|
||||||
],
|
],
|
||||||
|
@ -6869,5 +6869,16 @@
|
||||||
"https://social.lol/users/cory/statuses/111320562199470390"
|
"https://social.lol/users/cory/statuses/111320562199470390"
|
||||||
],
|
],
|
||||||
"lastTootTimestamp": 1698616977234
|
"lastTootTimestamp": 1698616977234
|
||||||
|
},
|
||||||
|
"https://app.thestorygraph.com/books/dd1135c7-0631-4bef-aab4-b62b400e0354": {
|
||||||
|
"id": "aHR0cHM6Ly9hcHAudGhlc3RvcnlncmFwaC5jb20vYm9va3MvZGQxMTM1YzctMDYzMS00YmVmLWFhYjQtYjYyYjQwMGUwMzU0",
|
||||||
|
"title": "📖: Bottoms Up and the Devil Laughs: A Journey Through the Deep State",
|
||||||
|
"url": "https://app.thestorygraph.com/books/dd1135c7-0631-4bef-aab4-b62b400e0354",
|
||||||
|
"content_text": "📖: Bottoms Up and the Devil Laughs: A Journey Through the Deep State #Books #NowReading #StoryGraph https://app.thestorygraph.com/books/dd1135c7-0631-4bef-aab4-b62b400e0354",
|
||||||
|
"date_published": "Mon, 30 Oct 2023 00:00:00 +0000",
|
||||||
|
"toots": [
|
||||||
|
"https://social.lol/users/cory/statuses/111325281856288949"
|
||||||
|
],
|
||||||
|
"lastTootTimestamp": 1698688993230
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -55,6 +55,7 @@ module.exports = async function () {
|
||||||
.map((book) => {
|
.map((book) => {
|
||||||
book.type = 'book'
|
book.type = 'book'
|
||||||
if (!('dateAdded' in book)) book.dateAdded = new Date()
|
if (!('dateAdded' in book)) book.dateAdded = new Date()
|
||||||
|
if (!('percentage' in book)) book.percentage = '0%'
|
||||||
return book
|
return book
|
||||||
})
|
})
|
||||||
await asset.save(books, 'json')
|
await asset.save(books, 'json')
|
||||||
|
|
|
@ -4,13 +4,13 @@
|
||||||
{% for mention in mentions['in-reply-to'] %}
|
{% for mention in mentions['in-reply-to'] %}
|
||||||
<div class="border-bottom flex flex-row items-center border-gray-100 pb-4 w-full">
|
<div class="border-bottom flex flex-row items-center border-gray-100 pb-4 w-full">
|
||||||
<div class="group flex flex-row space-between items-center">
|
<div class="group flex flex-row space-between items-center">
|
||||||
<a href="{{mention.url}}">
|
<a href={{mention.url}}>
|
||||||
<div class="bg-gray-900 dark:bg-white h-14 w-14 border-4 border-white dark:border-gray-200 transition-all ease-in-out duration-300 group-hover:border-blue-800 dark:group-hover:border-blue-200 rounded-full overflow-hidden">
|
<div class="bg-gray-900 dark:bg-white h-14 w-14 border-4 border-white dark:border-gray-200 transition-all ease-in-out duration-300 group-hover:border-blue-800 dark:group-hover:border-blue-200 rounded-full overflow-hidden">
|
||||||
<img src="{{ mention.author.photo }}" alt="{{ mention.author.name }}" class="w-full" />
|
{% image mention.author.photo, mention.author.name %}
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<div class="ml-3">
|
<div class="ml-3">
|
||||||
<a class="text-gray-700 dark:text-gray-200" href="{{mention.url}}">
|
<a class="text-gray-700 dark:text-gray-200" href={{mention.url}}>
|
||||||
<p class="text-sm group-hover:text-blue-800 dark:group-hover:text-blue-200">{{ mention.content.text }}</p>
|
<p class="text-sm group-hover:text-blue-800 dark:group-hover:text-blue-200">{{ mention.content.text }}</p>
|
||||||
<p class="mt-1 text-xs group-hover:text-blue-800 dark:group-hover:text-blue-200">{{ mention.published | isoDateOnly }}</p>
|
<p class="mt-1 text-xs group-hover:text-blue-800 dark:group-hover:text-blue-200">{{ mention.published | isoDateOnly }}</p>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<li class="-ml-3 inline">
|
<li class="-ml-3 inline">
|
||||||
<a href={{mention.url}}>
|
<a href={{mention.url}}>
|
||||||
<div class="bg-gray-900 dark:bg-white h-14 w-14 border-4 border-white dark:border-gray-900 transition-all ease-in-out duration-300 hover:border-blue-800 dark:hover:border-blue-200 rounded-full overflow-hidden">
|
<div class="bg-gray-900 dark:bg-white h-14 w-14 border-4 border-white dark:border-gray-900 transition-all ease-in-out duration-300 hover:border-blue-800 dark:hover:border-blue-200 rounded-full overflow-hidden">
|
||||||
<img src="{{ mention.author.photo }}" alt="{{ mention.author.name }}" class="w-full" />
|
{% image mention.author.photo, mention.author.name %}
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
File diff suppressed because one or more lines are too long
Reference in a new issue