paulca / paulca.com Public
Cap post line length at 80ch for readability (#3)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
5 files changed,
+23
−7
AGENTS.md+3 −3docs/ai.html+10 −2docs/blog/using-an-llm-off-the-grid/index.html+1 −1src/_data/ledger.json+8 −0src/_includes/post.njk+1 −1
diff --git a/AGENTS.md b/AGENTS.md| index 6e4c61a..358dfaa 100644 |
| --- a/AGENTS.md |
| +++ b/AGENTS.md |
| @@ -27,9 +27,9 @@ Follow the recipes below exactly. |
| ## Rules |
| 1. **No styling.** No CSS files, no `<style>` blocks, no new inline styles, no |
| - classes, no JavaScript. Semantic HTML and Markdown only. The one inline |
| - style on `<article>` in `post.njk` is the only styling on the site; leave |
| - it alone. |
| + classes, no JavaScript. Semantic HTML and Markdown only. The single |
| + `max-width:80ch` inline style on `<article>` in `post.njk` (a line-length |
| + cap for readability) is the only styling on the site; leave it alone. |
| 2. **Never edit anything in `docs/` by hand.** Change `src/`, then rebuild. |
| 3. **Post Paul's words verbatim.** When Paul gives you text for a blog post, |
| do not rewrite, correct, or embellish it. |
diff --git a/docs/ai.html b/docs/ai.html| index 29491dc..7b237af 100644 |
| --- a/docs/ai.html |
| +++ b/docs/ai.html |
| @@ -36,6 +36,14 @@ first.</p> |
| <td>~0.8 g</td> |
| <td>A half-hour of a 5 W LED bulb</td> |
| </tr> |
| +<tr> |
| + <td>July 25, 2026</td> |
| + <td>“Maybe we should add an 80ch limit so that it's a bit easier to read?”</td> |
| + <td>Put a single <code>max-width:80ch</code> inline style on the post template's <code><article></code> — a line-length cap, no centering — and updated <code>AGENTS.md</code> to match.</td> |
| + <td>~4 Wh</td> |
| + <td>~1.6 g</td> |
| + <td>Ten minutes of a 25 W monitor</td> |
| +</tr> |
| <tr> |
| <td>July 25, 2026</td> |
| <td>“Lose it. The pi post worked great.” — “it” being the one inline style left on the post template.</td> |
| @@ -142,8 +150,8 @@ first.</p> |
| </tr> |
| </table> |
| -<p><b>Running total:</b> ~156 Wh, |
| -~62 g CO₂e — |
| +<p><b>Running total:</b> ~160 Wh, |
| +~64 g CO₂e — |
| about the energy it takes to boil a litre and a half of water, or the emissions of driving a petrol car about 350 metres.</p> |
| <h2>Method</h2> |
diff --git a/docs/blog/using-an-llm-off-the-grid/index.html b/docs/blog/using-an-llm-off-the-grid/index.html| index 04c7db8..9627971 100644 |
| --- a/docs/blog/using-an-llm-off-the-grid/index.html |
| +++ b/docs/blog/using-an-llm-off-the-grid/index.html |
| @@ -11,7 +11,7 @@ |
| <nav><a href="/">← Home</a></nav> |
| -<article> |
| +<article style="max-width:80ch"> |
| <header> |
| <small>Paul Campbell • July 25, 2026</small> |
| <h1>Using an LLM "off-the-grid"</h1> |
diff --git a/src/_data/ledger.json b/src/_data/ledger.json| index cbe1a8b..a913f87 100644 |
| --- a/src/_data/ledger.json |
| +++ b/src/_data/ledger.json |
| @@ -9,6 +9,14 @@ |
| "co2_g": 0.8, |
| "comparison": "A half-hour of a 5 W LED bulb" |
| }, |
| + { |
| + "date": "July 25, 2026", |
| + "prompt_html": "“Maybe we should add an 80ch limit so that it's a bit easier to read?”", |
| + "outcome_html": "Put a single <code>max-width:80ch</code> inline style on the post template's <code><article></code> — a line-length cap, no centering — and updated <code>AGENTS.md</code> to match.", |
| + "wh": 4, |
| + "co2_g": 1.6, |
| + "comparison": "Ten minutes of a 25 W monitor" |
| + }, |
| { |
| "date": "July 25, 2026", |
| "prompt_html": "“Lose it. The pi post worked great.” — “it” being the one inline style left on the post template.", |
diff --git a/src/_includes/post.njk b/src/_includes/post.njk| index f377c9b..5c2372b 100644 |
| --- a/src/_includes/post.njk |
| +++ b/src/_includes/post.njk |
| @@ -3,7 +3,7 @@ layout: base.njk |
| --- |
| <nav><a href="/">← Home</a></nav> |
| -<article> |
| +<article style="max-width:80ch"> |
| <header> |
| <small>Paul Campbell • {{ page.date | longDate }}</small> |
| <h1>{{ title }}</h1> |