Phase 1 of i18n rollout: - render.sh: i18n_attrs helper, reads *_en fields from site.yaml, emits data-de/data-en attributes on title, description, role, tagline, cta, tags, section titles, card titles/descriptions, bio, content - base.html: i18n.js auto-included, title/description get i18n attrs - All 6 templates: translatable elements get i18n attr placeholders, footer toggle button with machine-translation disclaimer - ichbinotto.de pilot: added machine-translation disclaimer per m's request Templated sites can now be translated by adding _en fields to site.yaml.
87 lines
2.5 KiB
HTML
87 lines
2.5 KiB
HTML
{{template_css_start}}
|
|
:root {
|
|
--bg: #0a0a0c;
|
|
--bg-elevated: #111115;
|
|
--text: #e8e8ed;
|
|
--text-dimmed: #6e6e7a;
|
|
--accent: {{accent}};
|
|
--accent-light: {{accent_light}};
|
|
--font-primary: '{{font_primary}}', -apple-system, BlinkMacSystemFont, sans-serif;
|
|
--font-secondary: '{{font_secondary}}', 'Georgia', serif;
|
|
}
|
|
|
|
.container {
|
|
max-width: 640px;
|
|
}
|
|
|
|
.editorial-header {
|
|
padding: var(--spacing-xl) 0;
|
|
border-bottom: 1px solid rgba(255,255,255,0.06);
|
|
margin-bottom: var(--spacing-xl);
|
|
}
|
|
|
|
.editorial-header h1 {
|
|
font-family: var(--font-secondary);
|
|
font-size: 2.5rem;
|
|
font-weight: 700;
|
|
line-height: 1.2;
|
|
letter-spacing: -0.02em;
|
|
margin-bottom: var(--spacing-md);
|
|
}
|
|
|
|
.editorial-header .subtitle {
|
|
color: var(--text-dimmed);
|
|
font-size: 1.1rem;
|
|
font-style: italic;
|
|
}
|
|
|
|
.editorial-body {
|
|
font-family: var(--font-secondary);
|
|
font-size: 1.1rem;
|
|
line-height: 1.9;
|
|
color: var(--text-dimmed);
|
|
}
|
|
|
|
.editorial-body p {
|
|
margin-bottom: 1.5em;
|
|
}
|
|
|
|
.editorial-body strong {
|
|
color: var(--text);
|
|
}
|
|
|
|
.editorial-body blockquote {
|
|
border-left: 3px solid var(--accent);
|
|
padding-left: var(--spacing-lg);
|
|
margin: var(--spacing-xl) 0;
|
|
font-style: italic;
|
|
color: var(--text);
|
|
}
|
|
|
|
.footer {
|
|
text-align: center;
|
|
padding: var(--spacing-xl) 0;
|
|
color: var(--text-dimmed);
|
|
font-size: 0.75rem;
|
|
border-top: 1px solid rgba(255,255,255,0.06);
|
|
margin-top: var(--spacing-xl);
|
|
}
|
|
{{template_css_end}}
|
|
{{template_body_start}}
|
|
<div class="container fade-in">
|
|
<div class="editorial-header">
|
|
<h1{{title_i18n}}>{{title}}</h1>
|
|
<div class="subtitle"{{tagline_i18n}}>{{tagline}}</div>
|
|
</div>
|
|
<div class="editorial-body"{{content_i18n}}>
|
|
{{content_html}}
|
|
</div>
|
|
<div class="footer">
|
|
{{name}} — {{year}}
|
|
<br>
|
|
<button data-i18n-toggle title="Maschinell übersetzt / Machine-translated — German is the original." style="background:none;border:1px solid currentColor;color:var(--text-dimmed,#888);font-size:0.65rem;letter-spacing:0.1em;padding:4px 12px;border-radius:4px;cursor:pointer;margin-top:12px;opacity:0.6;">EN</button>
|
|
<br><small data-de="Maschinell übersetzt" data-en="Machine-translated" style="color:var(--text-dimmed,#888);font-size:0.6rem;opacity:0.5;">Maschinell übersetzt</small>
|
|
</div>
|
|
</div>
|
|
{{template_body_end}}
|