Changeset 3b4095f in Klonkt for src/services
- Timestamp:
- 07/01/2026 10:28:08 PM (2 months ago)
- Branches:
- main
- Children:
- 5e52448
- Parents:
- 7f265ce
- Location:
- src/services
- Files:
-
- 2 edited
-
OgImageService.js (modified) (1 diff)
-
i18n.js (modified) (3 diffs)
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') -
src/services/i18n.js
r7f265ce r3b4095f 285 285 'aseo.og_image': 'Standaard deel-afbeelding (URL)', 286 286 'aseo.og_image_hint': 'og:image / Twitter-card; ~1200×630px', 287 'aseo.og_theme': 'Deel-kaart licht of donker', 288 'aseo.og_theme_hint': 'de automatisch gemaakte deel-afbeelding', 289 'aseo.og_theme_auto': 'Automatisch (volgt site-thema)', 290 'aseo.og_theme_light': 'Licht', 291 'aseo.og_theme_dark': 'Donker', 287 292 'aseo.og_locale': 'Taal-locale', 288 293 'aseo.og_locale_hint_pre': 'og:locale, bv.', … … 1208 1213 'aseo.og_image': 'Default share image (URL)', 1209 1214 'aseo.og_image_hint': 'og:image / Twitter card; ~1200×630px', 1215 'aseo.og_theme': 'Share card light or dark', 1216 'aseo.og_theme_hint': 'the auto-generated share image', 1217 'aseo.og_theme_auto': 'Auto (follows site theme)', 1218 'aseo.og_theme_light': 'Light', 1219 'aseo.og_theme_dark': 'Dark', 1210 1220 'aseo.og_locale': 'Language locale', 1211 1221 'aseo.og_locale_hint_pre': 'og:locale, e.g.', … … 2130 2140 'aseo.og_image': 'Standard-Teilbild (URL)', 2131 2141 'aseo.og_image_hint': 'og:image / Twitter-Card; ~1200×630px', 2142 'aseo.og_theme': 'Teilen-Karte hell oder dunkel', 2143 'aseo.og_theme_hint': 'das automatisch erzeugte Teilbild', 2144 'aseo.og_theme_auto': 'Automatisch (folgt dem Site-Thema)', 2145 'aseo.og_theme_light': 'Hell', 2146 'aseo.og_theme_dark': 'Dunkel', 2132 2147 'aseo.og_locale': 'Sprach-Locale', 2133 2148 'aseo.og_locale_hint_pre': 'og:locale, z. B.',
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)