feat: Takes over the 40C3 startpage's background and headings
Light green background (#dff0d4), which is also the text colour in the dark scheme. Page titles and the site name are capitals like the startpage's h1, and section headings are green boxes like its "GET INFORMED", so the home page's 40C3 heading is now an h2. The EH22 logo credit moves to the footer. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
8fef93f0da
commit
0a415a4958
3 changed files with 53 additions and 42 deletions
|
|
@ -1,6 +1,14 @@
|
|||
{{- /* Overrides the zen theme's footer.html. Same as the theme's, plus the 40C3 logo. */ -}}
|
||||
{{- /* Overrides the zen theme's footer.html. Same as the theme's, plus the 40C3 logo and, on pages
|
||||
with event cards, the credits for event logos whose licence asks for one (credit in data/events.yaml). */ -}}
|
||||
{{ if $.Param "feedlinks" }}{{ partial "feedlinks.html" . }}{{ end -}}
|
||||
<p class="footer__event">{{ partial "logo-40c3.html" (dict "class" "footer__logo") }}</p>
|
||||
<p>{{ with site.Copyright }}{{ . | site.Home.RenderString }}{{ else }}<span>© {{ site.Title }}</span>{{ end }}</p>
|
||||
{{- if .HasShortcode "events" }}
|
||||
{{- $credits := slice }}
|
||||
{{- with hugo.Data.events }}{{ range .events }}{{ if .credit }}{{ $credits = $credits | append (dict "name" (.name | default (upper .event)) "credit" .credit) }}{{ end }}{{ end }}{{ end }}
|
||||
{{- with $credits }}
|
||||
<p>{{ range $index, $entry := . }}{{ if $index }} · {{ end }}{{ i18n "events_logo" (dict "Name" $entry.name) }}: {{ $entry.credit | site.Home.RenderString }}{{ end }}</p>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{ with $.Param "footer" }}<p>{{ . | site.Home.RenderString }}</p>{{ end }}
|
||||
{{ if $.Param "poweredby" }}<p>Powered by <a href="https://gohugo.io/">Hugo</a> and the <a href="https://github.com/frjo/hugo-theme-zen">Zen theme</a>.</p>{{ end }}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{{ partial "head/fonts.html" . }}
|
||||
{{- /* Browser UI colours, the same as the page backgrounds in assets/css/_custom.css. */ -}}
|
||||
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#ebedf0">
|
||||
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#dff0d4">
|
||||
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#001300">
|
||||
{{- /*
|
||||
Open Graph image for link previews. The theme's head/meta.html writes og:image only for the
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ Event cards from data/events.yaml, after the cards on the 40C3 start page
|
|||
(events.ccc.de/congress/2026/infos/startpage.html): the event's name and logo
|
||||
(assets/img/events/<event>.svg) in a heading bar, its motto, full name, dates and venue below.
|
||||
Cards link to the event's section; an event that is in progress, or has no section, gets a
|
||||
greyed-out card without a link. Logo credits from the data file follow the cards.
|
||||
greyed-out card without a link. Logo credits from the data file are in the footer (footer.html).
|
||||
|
||||
Usage: {{< events >}}
|
||||
*/ -}}
|
||||
|
|
@ -12,7 +12,6 @@ Usage: {{< events >}}
|
|||
{{- if not $events -}}
|
||||
{{- warnidf "warning-events-empty" "events: no events in data/events.yaml: %s" .Position -}}
|
||||
{{- else -}}
|
||||
{{- $credits := slice -}}
|
||||
<ul class="event-cards" role="list">
|
||||
{{- range $events }}
|
||||
{{- $name := .name | default (upper .event) }}
|
||||
|
|
@ -45,7 +44,6 @@ Usage: {{< events >}}
|
|||
{{- else }}
|
||||
{{- warnf "events: no logo assets/img/events/%s.svg" .event }}
|
||||
{{- end }}
|
||||
{{- with .credit }}{{ $credits = $credits | append (dict "name" $name "credit" .) }}{{ end }}
|
||||
<li class="event-cards__item">
|
||||
{{- if $link }}
|
||||
<a class="event-card" href="{{ $page.RelPermalink }}">
|
||||
|
|
@ -74,9 +72,4 @@ Usage: {{< events >}}
|
|||
</li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
{{- with $credits }}
|
||||
<p class="event-cards__credits">
|
||||
{{- range $index, $entry := . }}{{ if $index }} · {{ end }}{{ i18n "events_logo" (dict "Name" $entry.name) }}: {{ $.Page.RenderString $entry.credit }}{{ end -}}
|
||||
</p>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue