Skip to content

feat(blog-hero): configurable gradient overlay over bg_image - #80

Merged
ajianaz merged 1 commit into
developfrom
feat/bg-image-overlay-docs
Sep 3, 2026
Merged

feat(blog-hero): configurable gradient overlay over bg_image#80
ajianaz merged 1 commit into
developfrom
feat/bg-image-overlay-docs

Conversation

@ajianaz

@ajianaz ajianaz commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Part of #74 (item 2 + item 3; the URL-fetch half follows in a separate PR)

What

  • blog-hero: new brand field bg_image_overlay (0.0–1.0, default 0.7 = the previously hardcoded value, so behavior is unchanged when absent) controlling the gradient overlay opacity on top of bg_image
  • schema: bg_image_opacity description gains the dark-artwork guidance (~0.55) from the issue
  • docs: correct the documented --scale default (actual: 2.0 retina, was listed as 1.0) and note the 2x default output in the README

Why

Issue #74: users cannot control how much gradient sits on top of a background photo (production tuned value was 0.55 with manual template edits), and the documented --scale default contradicted the code.

Testing

  • cargo test full suite green (template render covered by Verify Templates)
  • E2E render: bg_image_overlay: 0.3 shows visibly more photo than default 0.7 with title contrast intact (visually verified)

Replace the hardcoded 0.7 gradient-overlay opacity with the brand
field bg_image_overlay (0.0-1.0, default 0.7 — unchanged behavior
when absent). Also fixes the documented --scale default (2.0, not
1.0) and adds bg_image_opacity dark-artwork guidance to the schema.

Ref: #74 (item 2 + item 3)
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown

🔍 Cora AI Code Review

No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit 800f040 into develop Sep 3, 2026
12 checks passed
@ajianaz
ajianaz deleted the feat/bg-image-overlay-docs branch September 3, 2026 09:41
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.

1 participant