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.
60 lines
2.1 KiB
Go Template
60 lines
2.1 KiB
Go Template
{{- /* Rendered by layouts/_partials/head/fonts.html, which explains why. */ -}}
|
|
{{- $url := dict -}}
|
|
{{- range slice "Jersey10-latin-ext" "Hack-Regular" "Hack-Italic" "Hack-Bold" "Hack-BoldItalic" -}}
|
|
{{- $url = merge $url (dict . (resources.Get (printf "fonts/%s.woff2" .) | fingerprint).RelPermalink) -}}
|
|
{{- end -}}
|
|
{{- $jersey := (resources.Get "fonts/Jersey10-latin.woff2").Content | base64Encode -}}
|
|
/* 40C3 "MODEL_CITIZENS" styleguide fonts, self-hosted (SIL OFL / MIT, see static/fonts).
|
|
Jersey 10: headings. Hack: body text and subheads.
|
|
Hack is subset to Latin (Latin-1, Latin Extended-A, general punctuation). */
|
|
|
|
/* The Latin subset of Jersey 10 is embedded, so German and English headings are never drawn in the fallback font. */
|
|
@font-face {
|
|
font-family: 'Jersey 10';
|
|
src: url('data:font/woff2;base64,{{ $jersey }}') format('woff2');
|
|
font-weight: 400;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Jersey 10';
|
|
src: url('{{ index $url "Jersey10-latin-ext" }}') format('woff2');
|
|
font-weight: 400;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Hack';
|
|
src: url('{{ index $url "Hack-Regular" }}') format('woff2');
|
|
font-weight: 400;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Hack';
|
|
src: url('{{ index $url "Hack-Italic" }}') format('woff2');
|
|
font-weight: 400;
|
|
font-style: italic;
|
|
font-display: swap;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Hack';
|
|
src: url('{{ index $url "Hack-Bold" }}') format('woff2');
|
|
font-weight: 700;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Hack';
|
|
src: url('{{ index $url "Hack-BoldItalic" }}') format('woff2');
|
|
font-weight: 700;
|
|
font-style: italic;
|
|
font-display: swap;
|
|
}
|