You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bin/generate-teasers.ts
+13-11Lines changed: 13 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ import {
9
9
computeTeaserHash,
10
10
loadRevisions,
11
11
saveRevisions,
12
-
}from'./revisions.ts'
12
+
}from'../11ty/revisions.ts'
13
13
14
14
constTEASER_PROMPT=`
15
15
You are generating a preview teaser for a blog post. The teaser appears as
@@ -22,10 +22,8 @@ read like the first few lines of the article, adapted to make sense without
22
22
the surrounding context.
23
23
24
24
Guidelines:
25
-
- Plain text only. No markdown, HTML, or formatting.
26
-
- Always use curly quotes (“” ‘’), em-dashes (—), and
27
-
ellipses (…). Never straight quotes or hyphens as dashes. Em-dashes must
28
-
have spaces on both sides (\` — \`).
25
+
- Plain text only. No markdown, HTML, or formatting. Unicode punctuation is fine.
26
+
- Em-dashes must have spaces on both sides (\` — \`).
29
27
- Target ~200 characters. Never exceed 250.
30
28
- Skip blockquotes. Bridge the text before and after naturally, including
31
29
only essential context from the quote if needed for surrounding text to
@@ -40,8 +38,10 @@ won’t be present.
40
38
- Output only the teaser text. No explanation, no quotes around it.
41
39
42
40
Examples of correct output:
43
-
- Maybe you’ve heard of the \u201Csocial contract.” It’s a concept in philosophy popularized during the Enlightenment…
44
-
- I’ve reimplemented everything to target WebAssembly using SIMD instructions\u2014a language I’ve wanted to learn…
41
+
- John Gruber is scathing about macOS Tahoe's window corners. In general I think the larger corner radiuses look fine. But if Apple really wanted to make this new look functional it needed to rethink how windows work…
42
+
- Maybe you've heard of the "social contract." It's a concept in philosophy popularized during the Enlightenment…
43
+
- I've reimplemented everything to target WebAssembly using SIMD instructions — a language I've wanted to learn…
44
+
- Simon P. Couch used energy-per-token estimates to calculate his AI coding energy use — about 1,300 Wh through Claude Code on a median day. This matches my mental model…
0 commit comments