Skip to content

Fix: Expose :blog-image-alt option via CLI#112

Merged
borkdude merged 1 commit intoborkdude:mainfrom
furkan3ayraktar:furkan/fix-blog-image-alt
Dec 15, 2025
Merged

Fix: Expose :blog-image-alt option via CLI#112
borkdude merged 1 commit intoborkdude:mainfrom
furkan3ayraktar:furkan/fix-blog-image-alt

Conversation

@furkan3ayraktar
Copy link
Contributor

Problem

The :blog-image-alt option works when calling api/render directly but is silently dropped when using the CLI (bb quickblog render).

Example bb.edn configuration:

:init (def opts {:blog-title "My Blog"
                 :blog-image "assets/preview.png"
                 :blog-image-alt "My Blog preview image"})
Method Result
(api/render opts) blog-image-alt works
bb quickblog render blog-image-alt is ignored

Root Cause

:blog-image-alt is used throughout the codebase but was never added to the CLI spec:

  • api.cljspit-index, spit-archive, spit-about, tag generation
  • internal.cljwrite-tag!
  • api_test.clj → tested at line 503

The CLI spec only included :blog-image:

:blog-image
{:desc "Blog thumbnail image URL; see Features > Social sharing in README"
 :ref "<url>"
 :group :social-sharing}

;; :blog-image-alt was missing here

Solution

Added :blog-image-alt to the CLI spec in the :social-sharing group:

:blog-image-alt
{:desc "Alt text for blog thumbnail image"
 :ref "<text>"
 :group :social-sharing}

Now both options are passed through correctly when using bb quickblog render.

The :blog-image-alt option was used internally but not exposed via the
CLI spec, causing it to be silently dropped when using `bb quickblog render`.
@borkdude borkdude merged commit 3cf590c into borkdude:main Dec 15, 2025
3 checks passed
@borkdude
Copy link
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants