Changeset 3b4095f in Klonkt for src/services/OgImageService.js
- Timestamp:
- 07/01/2026 10:28:08 PM (2 months ago)
- Branches:
- main
- Children:
- 5e52448
- Parents:
- 7f265ce
- File:
-
- 1 edited
-
src/services/OgImageService.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/services/OgImageService.js
r7f265ce r3b4095f 90 90 91 91 const palette = ThemeService.PALETTES[site.palette] ? site.palette : 'klonkt'; 92 // Follow the site's "default theme for new visitors" (theme_override): a light card when the site 93 // is set to Light, otherwise dark (an OG image is static, so Auto/Dark → dark). 94 const theme = site.theme_override === 'light' ? 'light' : 'dark'; 92 // Card variant: an explicit SEO override (og_theme) wins; else follow the site's "default 93 // theme for new visitors" (theme_override) — light when the site is set to Light, otherwise 94 // dark (an OG image is static, so Auto/Dark → dark). 95 const theme = (site.og_theme === 'light' || site.og_theme === 'dark') 96 ? site.og_theme 97 : (site.theme_override === 'light' ? 'light' : 'dark'); 95 98 const accent = site.accent || ((ThemeService.PALETTES[palette] || ThemeService.PALETTES.klonkt)[theme] || ThemeService.PALETTES.klonkt.dark).accent; 96 99 const key = crypto.createHash('sha1')
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)