content(mss-2026): add sponsor logo + event banners, update venue to NLB branch
- Add Capital Asset Management sponsor logo (images/partners/capital.png), replacing the plain-text sponsor name in the event partners row. - Set the in-article hero to the clean event banner (mss-2026-hero.webp) and the News/homepage listing cards to the sponsor-strip promo variant (mss-2026-card.webp) via a new front-matter `card:` field. - Update the venue everywhere (event page key info + prose + confirmation text, and the homepage promo banner) to "НЛБ експозитура, локација East Gate Mall, Скопје" (EN: NLB branch; SI: poslovalnica NLB), across all three languages. Build tooling: build_content emits an optional data-card on the hero <img>; build_listings prefers data-card as the listing thumbnail so the card can differ from the in-article hero. Rebuilt news pages, listings and search index. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
827b6b95f5
commit
903faf54fe
20 files changed
+68
-64
No files matched your search
@@ -134,6 +134,11 @@ def render_hero(hero, css_class):
|
||||
attrs.append(f'height="{hero["height"]}"')
|
||||
attrs.append('fetchpriority="high"')
|
||||
attrs.append(f'src="{_rel_img(hero.get("src", ""))}"')
|
||||
# Optional distinct listing thumbnail: build_listings prefers data-card over
|
||||
# src when generating the News hub / homepage cards (e.g. a promo variant
|
||||
# with sponsor logos, while the in-article hero stays clean).
|
||||
if hero.get("card"):
|
||||
attrs.append(f'data-card="{_rel_img(hero["card"])}"')
|
||||
attrs.append(f'alt="{html_mod.escape(hero.get("alt", ""))}"')
|
||||
fig = [f' <figure class="{css_class}">',
|
||||
f' <img {" ".join(attrs)}>']
|
||||
|
||||
@@ -89,7 +89,9 @@ def collect_items(lang):
|
||||
im = IMG_RE.search(fig.group(1))
|
||||
if im:
|
||||
a = im.group(1)
|
||||
src = ATTR_RE("src", a)
|
||||
# data-card, when present, is a promo thumbnail variant to
|
||||
# use in listings instead of the in-article hero image.
|
||||
src = ATTR_RE("data-card", a) or ATTR_RE("src", a)
|
||||
if src:
|
||||
img = {"src": rootrel_img(src), "w": ATTR_RE("width", a),
|
||||
"h": ATTR_RE("height", a), "alt": ATTR_RE("alt", a) or title}
|
||||
|
||||
Reference in new issue
Block a user