Files
sm-journal-plugin/config/config.yaml
Jakub Zych 4f5bd190e5 feat: image variants job and variants in the post API
- golem15_journal_image_variants (migration 202610280002): a thumbnail
  per width of golem15.journal.image_widths (480, 800, 1200 by default,
  never wider than the original) and its WebP copy, with the original's
  size
- conga job golem15.journal.image_variants (three attempts), queued after
  a featured image upload and after an admin save of a post whose images
  lack a width; the upload request never encodes
- journal:image-variants [--all] backfills
- featured_images[].variants {width, height, url, webp_url, source_width,
  source_height} on the post answers (additive key)
2026-11-04 17:05:16 +01:00

31 lines
1.6 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# golem15.journal defaults, read as golem15.journal.<key>.
#
# content_h1_to_h2 is the H1 setting used when the Journal settings row
# (Settings › Journal, Headings and links) does not exist; the row's own
# value decides otherwise. On, every H1 saved in Journal rich text (post
# content and category pillar text) becomes an H2 and the editor offers
# H2 to H4. Off, H1 headings are stored as written and the editor offers
# H1 to H4. Changing it never rewrites stored content; journal:fix-headings
# --apply does.
content_h1_to_h2: true
# Related posts on GET /_journal/api/v1/posts/{slug} (opt-in).
# related_mode "category" (the default) answers as before: up to three
# posts sharing a category with the post, newest first. "scored" ranks
# posts by shared tags (2 points each) and shared categories (1 point
# each), ties by the newest, returns related_count of them (3 to 6,
# clamped) and adds previous_in_category and next_in_category, the post's
# neighbours by publish time within its first category by name.
related_mode: category
related_count: 3
# Featured image variants (golem15.journal.image_variants job,
# journal:image-variants): after a featured image upload commits, a
# background job writes a thumbnail at each width (pixels, 16 to 4096,
# never wider than the original) and a WebP copy of each next to it. The
# API lists them as featured_images[].variants; the journal layer serves
# <picture> with WebP and the original format as fallback. An environment
# override takes a comma-separated list, e.g.
# SUMMER_GOLEM15__JOURNAL__IMAGE_WIDTHS=480,960.
image_widths: [480, 800, 1200]