implement title trimming

This commit is contained in:
Wouter Groeneveld 2021-03-13 13:50:01 +01:00
parent c6b332d909
commit 3357657e2a
10 changed files with 15 additions and 14 deletions

View File

@ -1,7 +1,7 @@
---
source: "https://chat.brainbaking.com/objects/b60e1777-50e0-4c9a-a378-30790ebc3559"
context: ""
title: "@eli_oat a serious fire destroyed the data center of my VPS last night: https://twitter.com/oleso..."
title: "@eli_oat a serious fire destroyed the data center ..."
date: "2021-03-10T16:24:22"
---

View File

@ -1,7 +1,7 @@
---
source: "https://chat.brainbaking.com/objects/0a61ea12-3f2b-4927-80d1-be73a0ffa0dd"
context: ""
title: "Great, I can ditch lazysizes.js! Didn't know about this before: https://web.dev/browser-level..."
title: "Great, I can ditch lazysizes.js! Didn't know a..."
date: "2021-03-12T18:06:14"
---

View File

@ -1,7 +1,7 @@
---
source: "https://chat.brainbaking.com/objects/3349fc64-6a9d-454a-97e3-77ef40716d3f"
context: "https://mastodon.social/users/rsolva/statuses/105873380693241916"
title: "@rsolva @aral @laura Great incentive Ruben, I chimed in and also became a backer! Loving what you..."
title: "@rsolva @aral @laura Great incentive Ruben, I chim..."
date: "2021-03-12T19:17:26"
---

View File

@ -1,7 +1,7 @@
---
source: "https://chat.brainbaking.com/objects/5bae531f-619f-42a3-ae71-94d02bd42f5f"
context: "https://mastodon.social/users/rsolva/statuses/105879494643524069"
title: "@rsolva that's a lie indeed 😁 see https://brainbaking.com/post/2021/03/getting-rid-of-trackin..."
title: "@rsolva that's a lie indeed 😁 see https://bra..."
date: "2021-03-13T09:58:25"
---

View File

@ -1,7 +1,7 @@
---
source: "https://chat.brainbaking.com/objects/3d6125ba-b9e6-455f-9640-8ca3b134545c"
context: "https://mastodon.social/users/rsolva/statuses/105882245174610605"
title: "@rsolva whoops overlooked the word 'native'.Well, all I can say is: it works!"
title: "@rsolva whoops overlooked the word 'native&#39..."
date: "2021-03-13T12:44:29"
---

View File

@ -9,7 +9,8 @@ const fsp = require('fs').promises;
await mastodon.parseFeed({
notesdir: `${__dirname}/content/notes`,
url: "https://chat.brainbaking.com/users/wouter/feed",
utcOffset: 60
utcOffset: 60,
titleCount: 50
})
// 2. update goodreads JS widget

View File

@ -25,6 +25,6 @@
},
"homepage": "https://brainbaking.com",
"dependencies": {
"jam-my-stack": "^1.0.7"
"jam-my-stack": "^1.0.8"
}
}

File diff suppressed because one or more lines are too long

View File

@ -10,7 +10,7 @@
Half-Baked Thought
</h1>
<h2 class="p-name">
{{ substr .Title 0 50 }}...
{{ .Title | safeHTML }}
</h2>
<h3>

View File

@ -1453,7 +1453,7 @@ __metadata:
"@babel/cli": ^7.8.4
"@babel/core": ^7.9.6
"@babel/preset-env": ^7.10.1
jam-my-stack: ^1.0.7
jam-my-stack: ^1.0.8
languageName: unknown
linkType: soft
@ -2706,9 +2706,9 @@ fsevents@^1.2.7:
languageName: node
linkType: hard
"jam-my-stack@npm:^1.0.7":
version: 1.0.7
resolution: "jam-my-stack@npm:1.0.7"
"jam-my-stack@npm:^1.0.8":
version: 1.0.8
resolution: "jam-my-stack@npm:1.0.8"
dependencies:
dayjs: ^1.10.4
ent: ^2.2.0
@ -2717,7 +2717,7 @@ fsevents@^1.2.7:
howlongtobeat: ^1.3.1
lunr: ^2.3.9
parser-front-matter: ^1.6.4
checksum: 572b8f6ec0c2998e2977c8b7e63e9a58f5290911a8767a5cdaac9f998c26566b4eaa276ef8b194da097098d94c614abaa550d4e7b22502b00ba32710834efb9b
checksum: 4645ef6fbedeb52e3362e04734ed0268191cb70684ed8826a88286a0e2e2220e44cf609553c354003d31e0b9121c48104a82863670f903295026a80d8a5fdb44
languageName: node
linkType: hard