The design from PR #67, after the 40C3 style guide, as a theme listed before hackertours in hugo.yaml, so it can be switched off again with one line after the event: - _custom.css, _events.css, the fonts, the 40C3 logo and the web manifest are taken over unchanged from the PR. - The PR's four changes to _schedule.css are an override in _schedule-40c3.css, so the generic schedule CSS stays shared. - The additions to head/extra.html and footer.html go through two new hooks in themes/hackertours, event-design/head.html and event-design/footer.html, which are empty in the generic design. - The content changes (40C3 heading on the home page, FAQ titles, Electrum headings) are taken over as they are. Not taken over: the stray hackertours_banner.webp.md and the removal of the tour-map script from home-baseof.html.
10 lines
519 B
HTML
10 lines
519 B
HTML
{{- /*
|
|
40C3 text logo, picked to suit the colour scheme: green on dark, dark text colour on light.
|
|
Params: class (optional, on the picture element).
|
|
*/ -}}
|
|
{{- $light := resources.Get "img/40c3/logo-text-b.svg" -}}
|
|
{{- $dark := resources.Get "img/40c3/logo-text-0.svg" -}}
|
|
<picture{{ with .class }} class="{{ . }}"{{ end }}>
|
|
<source srcset="{{ $dark.RelPermalink }}" media="(prefers-color-scheme: dark)">
|
|
<img src="{{ $light.RelPermalink }}" alt="40C3 MODEL_CITIZENS" width="138" height="71" loading="lazy">
|
|
</picture>
|