Skip to content

Commit 78a0226

Browse files
committed
feat(logs): give quotes full .txt bodies and prerender their routes
Quotes now follow the same convention as other log categories: piml holds metadata + short description, {slug}.txt holds the full body. discoverRoutes also scans piml for slugs so inline-only categories get prerendered with proper SEO meta tags.
1 parent c075ab8 commit 78a0226

3 files changed

Lines changed: 98 additions & 3 deletions

File tree

pages/discoverRoutes.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,19 @@ function logsRoutes() {
3737
if (!category.isDirectory()) continue;
3838
const dir = join(root, category.name);
3939
for (const file of readdirSync(dir)) {
40-
if (!file.endsWith('.txt')) continue;
41-
const slug = file.slice(0, -4);
42-
out.add(`/logs/${category.name}/${slug}`);
40+
if (file.endsWith('.txt')) {
41+
out.add(`/logs/${category.name}/${file.slice(0, -4)}`);
42+
}
43+
}
44+
// Some categories (e.g. quote) keep their entries inline in the
45+
// category piml with no per-slug .txt — pull slugs from there too.
46+
const pimlPath = join(dir, `${category.name}.piml`);
47+
if (existsSync(pimlPath)) {
48+
const text = readFileSync(pimlPath, 'utf8');
49+
for (const line of text.split(/\r?\n/)) {
50+
const m = line.match(/^\s*\(slug\)\s*(\S+)/);
51+
if (m) out.add(`/logs/${category.name}/${m[1]}`);
52+
}
4353
}
4454
}
4555
return out;
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Errare humanum est, ignoscere divinum
2+
3+
> *"To err is human; to forgive, divine."*
4+
5+
## The phrase
6+
7+
| Language | Form |
8+
| --- | --- |
9+
| Latin | *Errare humanum est, ignoscere divinum.* |
10+
| English | To err is human; to forgive, divine. |
11+
| Literal | "To be wrong is human; to pardon, godlike." |
12+
13+
## Origin
14+
15+
The Latin half — *errare humanum est* — is older and proverbial. A close form ("*errare humanum est, perseverare autem diabolicum*" — "to err is human, but to persist in error is diabolical") is commonly attributed to **Seneca the Younger** (1st century AD), though the exact wording does not appear verbatim in his surviving texts. Variants circulated through medieval Latin as a school maxim.
16+
17+
The familiar bilingual pairing we use today — joining the Latin proverb to "to forgive, divine" — comes from **Alexander Pope**'s *An Essay on Criticism* (1711), lines 524–525:
18+
19+
> *Good-nature and good-sense must ever join;*
20+
> *To err is human, to forgive, divine.*
21+
22+
Pope was writing about literary critics: his point was that critics, like everyone else, will make mistakes, and the mark of a generous reader is to forgive small faults rather than seize on them. The line escaped its original context almost immediately and has been quoted in moral, religious, and legal settings ever since.
23+
24+
## Why it endures
25+
26+
The phrase compresses two ideas that are usually argued separately:
27+
28+
1. **Error is the baseline condition of being human.** Not a failure mode, not an exception — the default. Any framework that treats mistakes as aberrations is built on a wrong model of people.
29+
2. **Forgiveness is harder than error.** It is the active part. Erring takes no effort; pardoning does. Calling it *divine* is not flattery — it is an honest admission that it costs something, and most people will not pay.
30+
31+
The asymmetry is the whole point. Pairing the two halves makes the second one impossible to read as cheap.
32+
33+
## In practice
34+
35+
Useful as a check on two reflexes:
36+
37+
- **When you catch someone in a mistake.** The first line says: of course they made one. So did you, last week. The interesting question is what you do next.
38+
- **When you catch yourself.** The same line applies. Self-flagellation over an error is just a different way of treating the error as exceptional. It wasn't.
39+
40+
## See also
41+
42+
- Seneca, *Epistulae Morales*, on human fallibility.
43+
- Alexander Pope, *An Essay on Criticism* (1711).
44+
- The shorter modern fragment "*to err is human*" — usually quoted alone, which loses Pope's whole argument.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# The only true wisdom is in knowing you know nothing
2+
3+
> *"The only true wisdom is in knowing you know nothing."*
4+
5+
## The phrase
6+
7+
| Language | Form |
8+
| --- | --- |
9+
| Greek (paraphrase) | *ἓν οἶδα ὅτι οὐδὲν οἶδα* — *hen oîda hóti oudèn oîda* |
10+
| Literal | "One thing I know: that I know nothing." |
11+
| Common English | The only true wisdom is in knowing you know nothing. |
12+
13+
The widely circulated English version is a popular paraphrase, often attributed to Socrates by way of Plato. The exact wording does not appear in the dialogues; the closest source is the **Apology** (21d), where Socrates, recounting his conversation with a man reputed to be wise, concludes:
14+
15+
> *"I am wiser than this man; for neither of us really knows anything fine and good, but this man thinks he knows something when he does not, whereas I, as I do not know anything, do not think I do either."*
16+
17+
The compressed proverb we quote today is a later distillation of that passage.
18+
19+
## Origin
20+
21+
Socrates (c. 470–399 BC) never wrote anything down. Everything attributed to him reaches us through his students — primarily **Plato** and, to a lesser extent, **Xenophon**. The "I know that I know nothing" formulation is sometimes called the *Socratic paradox*, though Socrates himself uses it not as a paradox but as a procedural starting point: if you don't grant that you might be wrong, you cannot inquire honestly.
22+
23+
## Why it endures
24+
25+
Two reasons it has survived 2,400 years of quotation:
26+
27+
1. **It is a precondition for inquiry, not a conclusion of it.** The line is usually read as humility, but its real function is methodological. You can only investigate a question seriously if you treat your current answer as provisional. Every research practice — from science to law to debugging — depends on this move.
28+
2. **It distinguishes confidence from knowledge.** Most people who *think* they know something have not separated "I have a strong intuition" from "I have verified this." Socrates' contribution was to make that gap visible and uncomfortable.
29+
30+
## In practice
31+
32+
Useful as a check on two reflexes:
33+
34+
- **When you find yourself certain.** Ask what would have to be true for you to be wrong. If you can't name anything, the certainty is probably a feeling, not a finding.
35+
- **When you find yourself dismissive of someone else.** Ask what they might know that you don't. The Socratic move is to assume there is something, and to look for it before deciding they're confused.
36+
37+
## See also
38+
39+
- Plato, *Apology*, 21a–23b — the source passage.
40+
- Xenophon, *Memorabilia* — a parallel, less philosophical portrait of Socrates.
41+
- The Dunning–Kruger effect — the modern empirical cousin: people with the least knowledge are often the most confident.

0 commit comments

Comments
 (0)