Skip to content
papagelPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Blog

A simple, static blog — plain HTML files, one shared stylesheet, no build step.

Structure

.
├── index.html          # Home page (list of posts)
├── about.html          # About page
├── experiments.html    # Experiments page (image tiles for games & tools)
├── 404.html            # Not-found page
├── posts/              # One HTML file per post
│   └── hello-world.html
├── css/style.css       # All styling (light + dark); bump ?v= in every page when it changes
├── js/theme.js         # Dark mode toggle
├── assets/og/          # Per-page social-share cards (generated)
├── assets/experiments/ # 960x540 tile images for experiments.html
├── scripts/generate-og.mjs  # Builds the social cards
├── CNAME               # Your custom domain (for GitHub Pages)
└── .nojekyll           # Tells GitHub Pages to serve files as-is

Writing a new post

  1. Copy posts/hello-world.html to posts/your-post-name.html.

  2. Change the <title>, the <h1>, the date, and the body text.

  3. Add a link to it near the top of the post list in index.html:

    <li>
      <a href="/posts/your-post-name.html">Your title</a>
      <span class="post-meta">Month DD, YYYY</span>
      <p class="post-excerpt">One-line summary.</p>
    </li>
  4. Generate the social-share card so the post has its own branded preview when shared on X, LinkedIn, etc. (uses the post's og:title as the headline and og:description as the subhead):

    node scripts/generate-og.mjs

    This regenerates assets/og/<slug>.png for every page and points each page's og:image / twitter:image at its own card. Requires rsvg-convert (install once with brew install librsvg). To rebuild only some cards, name the pages: node scripts/generate-og.mjs posts/your-post-name.html.

  5. Save, commit, and push. It's live in a minute.

Adding an experiment

  1. Save a 16:9 image, 960x540 JPEG, as assets/experiments/<slug>.jpg. Game tiles use the hub's original artwork (papagel/games-hub, assets/thumbs/fix-*.jpg).
  2. Copy one <li> in experiments.html and change the link, image, title, description, and host line.

Cognitive Bias Explorer (moved to thebiasmap.com)

The explorer used to live at /biases/. Since 2026-10-01 it has its own domain, thebiasmap.com, built from papagel/cognitive-bias into papagel/thebiasmap. What's left under biases/ here are small pages that forward every old address to the same path on thebiasmap.com (keeping # links), made by blog-redirects.py in the cognitive-bias repo. Don't edit them by hand.

Preview locally

python3 -m http.server 8000
# open http://localhost:8000

Deploy to GitHub Pages

  1. Create a new repository on GitHub.

  2. Push this folder:

    git remote add origin https://github.com/<you>/<repo>.git
    git push -u origin main
  3. In the repo: Settings → Pages → Build and deployment, set Source = Deploy from a branch, Branch = main / root, then Save.

  4. Put your domain in the CNAME file (already scaffolded — replace the placeholder), and in Settings → Pages → Custom domain.

  5. At your domain registrar, point DNS at GitHub Pages:

    • Apex domain (example.com): four A records → 185.199.108.153, 185.199.109.153, 185.199.110.153, 185.199.111.153
    • Subdomain (blog.example.com): one CNAME record → <you>.github.io
  6. Wait for DNS, then enable Enforce HTTPS.


## Article hero images

Each published article has a 2:1 editorial illustration below its title and date,
before the audio player. Assets live in `assets/heroes/<slug>.webp`; the shared
`article-hero` class keeps them aligned to the article width. Retain explicit
image dimensions and descriptive alt text when adding a new hero.

Art direction: tactile cubist oil painting with restrained surrealism,
ultramarine blue, terracotta, ochre and chalk tones. Use one readable metaphor
from the article's argument, with understated visual humour where appropriate.
Prefer simple compositions and meaningful negative space; avoid embedded titles.
The illustrations are AI-generated. Social-sharing cards remain in `assets/og/`.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages