feat(IFK-11): migrate from Congo to HugoBlox with custom layouts
All checks were successful
Deploy Internet for Kids / Build & Push (push) Successful in 12s
Deploy Internet for Kids / Deploy (push) Successful in 5s
Deploy Internet for Kids / Health Check (push) Successful in 2s
Deploy Internet for Kids / Smoke Tests (push) Successful in 3s
Deploy Internet for Kids / IndexNow Ping (push) Successful in 9s
Deploy Internet for Kids / Promote to Latest (push) Successful in 2s
Deploy Internet for Kids / Rollback (push) Has been skipped
Deploy Internet for Kids / Audit (push) Successful in 2s
All checks were successful
Deploy Internet for Kids / Build & Push (push) Successful in 12s
Deploy Internet for Kids / Deploy (push) Successful in 5s
Deploy Internet for Kids / Health Check (push) Successful in 2s
Deploy Internet for Kids / Smoke Tests (push) Successful in 3s
Deploy Internet for Kids / IndexNow Ping (push) Successful in 9s
Deploy Internet for Kids / Promote to Latest (push) Successful in 2s
Deploy Internet for Kids / Rollback (push) Has been skipped
Deploy Internet for Kids / Audit (push) Successful in 2s
- Remove Congo theme submodule, add Hugo modules (blox-core) - Custom baseof/single/home/list layouts (no Tailwind build needed) - Newsreader serif font preserved throughout - Agiliton lime/emerald brand colors - All 7 shortcodes preserved (world-map, charts, stats, etc.) - Multilingual EN/DE/FR with i18n files - Self-hosted fonts, no external CSS dependencies - Wide content layout, clean research-publication aesthetic Reference: metaconscious.org, matteocourthoud.github.io Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
6
.session/metadata.env
Normal file
6
.session/metadata.env
Normal file
@@ -0,0 +1,6 @@
|
||||
SESSION_ISSUE_KEY=CF-2812
|
||||
PROJECT_DIR=/Users/christian.gick/Development/Apps/internetforkids
|
||||
WORKSPACE_PATH=/Users/christian.gick/.claude/workspaces/cf-2812
|
||||
BASE_BRANCH=main
|
||||
CREATED_AT=1775206558
|
||||
CLAUDE_PID=74267
|
||||
3
.session/notes.md
Normal file
3
.session/notes.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# Session CF-2812
|
||||
Started: 2026-04-03 11:55
|
||||
Project: internetforkids
|
||||
0
.session/plan.md
Normal file
0
.session/plan.md
Normal file
324
assets/css/main.css
Normal file
324
assets/css/main.css
Normal file
@@ -0,0 +1,324 @@
|
||||
/* Custom font imports */
|
||||
@font-face {
|
||||
font-family: 'Newsreader';
|
||||
font-style: normal;
|
||||
font-weight: 400 700;
|
||||
font-display: swap;
|
||||
src: url(/fonts/newsreader/newsreader-latin.woff2) format('woff2');
|
||||
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: 'Newsreader';
|
||||
font-style: normal;
|
||||
font-weight: 400 700;
|
||||
font-display: swap;
|
||||
src: url(/fonts/newsreader/newsreader-latin-ext.woff2) format('woff2');
|
||||
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: 'Newsreader';
|
||||
font-style: italic;
|
||||
font-weight: 400 500;
|
||||
font-display: swap;
|
||||
src: url(/fonts/newsreader/newsreader-italic-latin.woff2) format('woff2');
|
||||
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: 'Newsreader';
|
||||
font-style: italic;
|
||||
font-weight: 400 500;
|
||||
font-display: swap;
|
||||
src: url(/fonts/newsreader/newsreader-italic-latin-ext.woff2) format('woff2');
|
||||
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;
|
||||
}
|
||||
|
||||
/* CSS Variables */
|
||||
:root {
|
||||
--ifk-font: 'Newsreader', 'Times New Roman', serif;
|
||||
--ifk-text: #1c1917;
|
||||
--ifk-bg: #fafaf9;
|
||||
--ifk-accent: #4d7c0f;
|
||||
--ifk-accent-hover: #3f6212;
|
||||
--ifk-secondary: #059669;
|
||||
}
|
||||
|
||||
/* Utility classes for colors */
|
||||
.text-ifk-accent { color: var(--ifk-accent); }
|
||||
.text-ifk-text { color: var(--ifk-text); }
|
||||
.bg-ifk-bg { background-color: var(--ifk-bg); }
|
||||
.hover\:text-ifk-accent:hover { color: var(--ifk-accent); }
|
||||
.hover\:text-ifk-accent-hover:hover { color: var(--ifk-accent-hover); }
|
||||
|
||||
/* Font family utility */
|
||||
.font-newsreader { font-family: var(--ifk-font); }
|
||||
|
||||
/* Tailwind-equivalent utilities */
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
.flex { display: flex; }
|
||||
.flex-1 { flex: 1 1 0%; }
|
||||
.flex-wrap { flex-wrap: wrap; }
|
||||
.inline-block { display: inline-block; }
|
||||
.grid { display: grid; }
|
||||
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
|
||||
.justify-between { justify-content: space-between; }
|
||||
.items-center { align-items: center; }
|
||||
.gap-4 { gap: 1rem; }
|
||||
.gap-8 { gap: 2rem; }
|
||||
.mx-auto { margin-left: auto; margin-right: auto; }
|
||||
.max-w-2xl { max-width: 42rem; }
|
||||
.max-w-3xl { max-width: 48rem; }
|
||||
.max-w-4xl { max-width: 56rem; }
|
||||
.px-4 { padding-left: 1rem; padding-right: 1rem; }
|
||||
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
|
||||
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
|
||||
.p-4 { padding: 1rem; }
|
||||
.pt-8 { padding-top: 2rem; }
|
||||
.mb-2 { margin-bottom: 0.5rem; }
|
||||
.mb-3 { margin-bottom: 0.75rem; }
|
||||
.mb-4 { margin-bottom: 1rem; }
|
||||
.mb-8 { margin-bottom: 2rem; }
|
||||
.mb-12 { margin-bottom: 3rem; }
|
||||
.mr-2 { margin-right: 0.5rem; }
|
||||
.mt-12 { margin-top: 3rem; }
|
||||
.mt-20 { margin-top: 5rem; }
|
||||
.sticky { position: sticky; }
|
||||
.top-0 { top: 0; }
|
||||
.z-40 { z-index: 40; }
|
||||
.border { border: 1px solid #e5e7eb; }
|
||||
.border-t { border-top: 1px solid #e5e7eb; }
|
||||
.border-b { border-bottom: 1px solid #e5e7eb; }
|
||||
.rounded { border-radius: 0.25rem; }
|
||||
.bg-white { background-color: #fff; }
|
||||
.bg-gray-50 { background-color: #f9fafb; }
|
||||
.text-center { text-align: center; }
|
||||
.text-left { text-align: left; }
|
||||
.text-right { text-align: right; }
|
||||
.text-xs { font-size: 0.75rem; line-height: 1rem; }
|
||||
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
|
||||
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
|
||||
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
|
||||
.text-4xl { font-size: 2.75rem; line-height: 1.15; }
|
||||
.font-semibold { font-weight: 600; }
|
||||
.uppercase { text-transform: uppercase; }
|
||||
.tracking-wide { letter-spacing: 0.025em; }
|
||||
.leading-tight { line-height: 1.25; }
|
||||
.leading-relaxed { line-height: 1.625; }
|
||||
.text-gray-600 { color: #4b5563; }
|
||||
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
|
||||
@media (min-width: 768px) { .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); } }
|
||||
|
||||
/* Global typography */
|
||||
body {
|
||||
background-color: var(--ifk-bg);
|
||||
color: var(--ifk-text);
|
||||
font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
|
||||
}
|
||||
|
||||
article, .prose {
|
||||
font-family: var(--ifk-font);
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-family: var(--ifk-font);
|
||||
color: var(--ifk-text);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
h1, .article-title {
|
||||
font-size: 2.75rem;
|
||||
line-height: 1.15;
|
||||
letter-spacing: -0.01em;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.85rem;
|
||||
line-height: 1.25;
|
||||
margin-top: 3rem;
|
||||
margin-bottom: 1.25rem;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.5rem;
|
||||
line-height: 1.3;
|
||||
margin-top: 2.5rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
/* Article content */
|
||||
article p {
|
||||
font-size: 1.375rem;
|
||||
line-height: 1.6;
|
||||
margin-bottom: 1.5rem;
|
||||
font-family: var(--ifk-font);
|
||||
}
|
||||
|
||||
/* Links */
|
||||
article a {
|
||||
color: var(--ifk-accent);
|
||||
text-decoration: underline;
|
||||
text-decoration-thickness: 1px;
|
||||
text-underline-offset: 2px;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
article a:hover {
|
||||
color: var(--ifk-accent-hover);
|
||||
text-decoration-thickness: 2px;
|
||||
}
|
||||
|
||||
/* Blockquotes */
|
||||
blockquote {
|
||||
font-family: var(--ifk-font);
|
||||
font-style: italic;
|
||||
font-size: 1.5rem;
|
||||
line-height: 1.6;
|
||||
border-left: 3px solid var(--ifk-secondary);
|
||||
padding-left: 1.5rem;
|
||||
margin: 2rem 0;
|
||||
color: var(--ifk-text);
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
/* Code blocks */
|
||||
code {
|
||||
font-family: 'Courier New', monospace;
|
||||
font-size: 0.9rem;
|
||||
background: #f3f4f6;
|
||||
padding: 0.1rem 0.4rem;
|
||||
border-radius: 0.25rem;
|
||||
}
|
||||
|
||||
pre {
|
||||
background: #1f2937;
|
||||
color: #f3f4f6;
|
||||
padding: 1.5rem;
|
||||
border-radius: 0.5rem;
|
||||
overflow-x: auto;
|
||||
font-family: 'Courier New', monospace;
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.5;
|
||||
margin: 1.5rem 0;
|
||||
}
|
||||
|
||||
pre code {
|
||||
background: none;
|
||||
color: inherit;
|
||||
padding: 0;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
/* Tables */
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 1.5rem 0;
|
||||
font-family: var(--ifk-font);
|
||||
font-size: 1.1rem;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
th, td {
|
||||
padding: 0.75rem 1rem;
|
||||
border: 1px solid #e5e7eb;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
th {
|
||||
background: #f3f4f6;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* Lists */
|
||||
ul, ol {
|
||||
margin-left: 1.5rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
li {
|
||||
margin-bottom: 0.5rem;
|
||||
font-family: var(--ifk-font);
|
||||
font-size: 1.375rem;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* Navigation */
|
||||
nav, header, footer {
|
||||
font-family: system-ui, -apple-system, sans-serif;
|
||||
}
|
||||
|
||||
nav a {
|
||||
text-decoration: none;
|
||||
transition: color 0.2s ease;
|
||||
}
|
||||
|
||||
nav a:hover {
|
||||
color: var(--ifk-accent);
|
||||
}
|
||||
|
||||
/* Article metadata */
|
||||
.article-meta, .post-meta, time, .reading-time {
|
||||
font-family: system-ui, -apple-system, sans-serif;
|
||||
font-size: 0.95rem;
|
||||
color: #6b7280;
|
||||
}
|
||||
|
||||
/* Tags */
|
||||
.taxonomy-term, [href*="/tags/"], [href*="/categories/"] {
|
||||
font-family: system-ui, -apple-system, sans-serif;
|
||||
font-size: 0.8rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
color: var(--ifk-accent);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.taxonomy-term:hover, [href*="/tags/"]:hover, [href*="/categories/"]:hover {
|
||||
color: var(--ifk-accent-hover);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Table of Contents */
|
||||
#TableOfContents {
|
||||
font-family: system-ui, -apple-system, sans-serif;
|
||||
font-size: 0.95rem;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
#TableOfContents a {
|
||||
color: var(--ifk-accent);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#TableOfContents a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Status badges (for shortcodes) */
|
||||
.csm-enforced { background: var(--ifk-accent); color: white; }
|
||||
.csm-passed { background: var(--ifk-secondary); color: white; }
|
||||
.csm-progress { background: #86efac; color: #14532d; }
|
||||
.csm-guidelines { background: #d1fae5; color: #065f46; }
|
||||
|
||||
/* Shortcode-specific overrides */
|
||||
.ifk-stat-num { font-family: var(--ifk-font); }
|
||||
.ifk-stat-label { font-family: system-ui, -apple-system, sans-serif; }
|
||||
.ifk-chart-card h4 { font-family: system-ui, -apple-system, sans-serif; }
|
||||
|
||||
/* Responsive design */
|
||||
@media (max-width: 768px) {
|
||||
h1, .article-title {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
article p, li {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
}
|
||||
@@ -1,37 +1,18 @@
|
||||
colorScheme = "avocado"
|
||||
colorScheme = "light"
|
||||
defaultAppearance = "light"
|
||||
autoSwitchAppearance = false
|
||||
mainSections = [""]
|
||||
|
||||
# Blox Core config
|
||||
minimal = false
|
||||
|
||||
[header]
|
||||
layout = "basic"
|
||||
showTitle = true
|
||||
navbar = true
|
||||
|
||||
[footer]
|
||||
showCopyright = true
|
||||
showThemeAttribution = false
|
||||
showScrollToTop = true
|
||||
showAppearanceSwitcher = false
|
||||
copyright = "© Internet for Kids"
|
||||
privacyPolicy = "/privacy"
|
||||
|
||||
[homepage]
|
||||
layout = "profile"
|
||||
showRecent = true
|
||||
recentLimit = 5
|
||||
|
||||
[article]
|
||||
showDate = true
|
||||
showReadingTime = true
|
||||
showAuthor = true
|
||||
showBreadcrumbs = true
|
||||
showTableOfContents = true
|
||||
showTaxonomies = true
|
||||
showRelatedContent = true
|
||||
showWordCount = false
|
||||
showSummary = true
|
||||
|
||||
[list]
|
||||
showBreadcrumbs = true
|
||||
showTaxonomies = true
|
||||
|
||||
[taxonomy]
|
||||
showTermCount = true
|
||||
[appearance]
|
||||
color_theme = "ifk"
|
||||
font_theme = "ifk_fonts"
|
||||
|
||||
5
go.mod
Normal file
5
go.mod
Normal file
@@ -0,0 +1,5 @@
|
||||
module github.com/christian/internetforkids
|
||||
|
||||
go 1.26.1
|
||||
|
||||
require github.com/HugoBlox/hugo-blox-builder/modules/blox-core v0.4.1 // indirect
|
||||
2
go.sum
Normal file
2
go.sum
Normal file
@@ -0,0 +1,2 @@
|
||||
github.com/HugoBlox/hugo-blox-builder/modules/blox-core v0.4.1 h1:LAIEtt5FVZVJoKVmZ+rB/M5exoek52ksCEK12HWssIo=
|
||||
github.com/HugoBlox/hugo-blox-builder/modules/blox-core v0.4.1/go.mod h1:So8+V2U+TNxlXmcpZfdDX0muLh3PdJ7z92h30sv3bZg=
|
||||
@@ -1,16 +1,19 @@
|
||||
baseURL = "https://internetforkids.org/"
|
||||
title = "Internet for Kids"
|
||||
theme = "congo"
|
||||
|
||||
defaultContentLanguage = "en"
|
||||
defaultContentLanguageInSubdir = true
|
||||
|
||||
enableRobotsTXT = true
|
||||
|
||||
[module]
|
||||
[[module.imports]]
|
||||
path = "github.com/HugoBlox/hugo-blox-builder/modules/blox-core"
|
||||
|
||||
[markup]
|
||||
[markup.goldmark]
|
||||
[markup.goldmark.renderer]
|
||||
unsafe = false
|
||||
unsafe = true
|
||||
[markup.highlight]
|
||||
style = "monokai"
|
||||
|
||||
|
||||
17
i18n/de.toml
Normal file
17
i18n/de.toml
Normal file
@@ -0,0 +1,17 @@
|
||||
[recent_posts]
|
||||
other = "Neueste Artikel"
|
||||
|
||||
[read_more]
|
||||
other = "Weiterlesen"
|
||||
|
||||
[table_of_contents]
|
||||
other = "Inhaltsverzeichnis"
|
||||
|
||||
[tags]
|
||||
other = "Schlagwörter"
|
||||
|
||||
[previous]
|
||||
other = "Vorheriger"
|
||||
|
||||
[next]
|
||||
other = "Nächster"
|
||||
17
i18n/en.toml
Normal file
17
i18n/en.toml
Normal file
@@ -0,0 +1,17 @@
|
||||
[recent_posts]
|
||||
other = "Recent Articles"
|
||||
|
||||
[read_more]
|
||||
other = "Read more"
|
||||
|
||||
[table_of_contents]
|
||||
other = "Table of Contents"
|
||||
|
||||
[tags]
|
||||
other = "Tags"
|
||||
|
||||
[previous]
|
||||
other = "Previous"
|
||||
|
||||
[next]
|
||||
other = "Next"
|
||||
17
i18n/fr.toml
Normal file
17
i18n/fr.toml
Normal file
@@ -0,0 +1,17 @@
|
||||
[recent_posts]
|
||||
other = "Articles récents"
|
||||
|
||||
[read_more]
|
||||
other = "Lire la suite"
|
||||
|
||||
[table_of_contents]
|
||||
other = "Table des matières"
|
||||
|
||||
[tags]
|
||||
other = "Mots-clés"
|
||||
|
||||
[previous]
|
||||
other = "Précédent"
|
||||
|
||||
[next]
|
||||
other = "Suivant"
|
||||
54
layouts/_default/baseof.html
Normal file
54
layouts/_default/baseof.html
Normal file
@@ -0,0 +1,54 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Language.LanguageCode | default "en" }}" dir="{{ .Language.LanguageDirection | default "ltr" }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="description" content="{{ .Description | default .Summary | plainify | truncate 160 }}">
|
||||
<meta name="author" content="{{ .Params.author | default "Internet for Kids" }}">
|
||||
|
||||
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} — {{ .Site.Title }}{{ end }}</title>
|
||||
|
||||
{{ partial "extend-head.html" . }}
|
||||
|
||||
{{/* Main stylesheet with Newsreader + custom colors */}}
|
||||
<link rel="stylesheet" href="{{ "css/main.css" | relURL }}">
|
||||
</head>
|
||||
<body class="bg-ifk-bg text-ifk-text">
|
||||
<header class="border-b bg-white sticky top-0 z-40">
|
||||
<nav class="max-w-4xl mx-auto px-4 py-4 flex justify-between items-center">
|
||||
<a href="{{ "/" | relLangURL }}" class="font-newsreader text-xl font-semibold text-ifk-text hover:text-ifk-accent">
|
||||
{{ .Site.Title }}
|
||||
</a>
|
||||
{{ partial "language-switcher.html" . }}
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main class="flex-1">
|
||||
{{ block "main" . }}{{ end }}
|
||||
</main>
|
||||
|
||||
<footer class="border-t bg-white mt-20">
|
||||
<div class="max-w-4xl mx-auto px-4 py-12">
|
||||
<div class="grid grid-cols-2 md:grid-cols-3 gap-8 mb-12">
|
||||
{{ range .Site.Menus.footer }}
|
||||
<a href="{{ .URL | relLangURL }}" class="text-gray-600 hover:text-ifk-accent">
|
||||
{{ .Name }}
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="border-t pt-8 text-center text-sm text-gray-600">
|
||||
<p class="mb-2">
|
||||
© {{ now.Year }} {{ .Site.Title }}. A publication by <a href="https://www.agiliton.eu" class="text-ifk-accent hover:text-ifk-accent-hover">Agiliton</a>.
|
||||
</p>
|
||||
{{ partial "extend-footer.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
{{/* Analytics */}}
|
||||
{{ partial "rybbit.html" . }}
|
||||
|
||||
{{/* SEO */}}
|
||||
{{ partial "structured-data.html" . }}
|
||||
</body>
|
||||
</html>
|
||||
30
layouts/_default/home.html
Normal file
30
layouts/_default/home.html
Normal file
@@ -0,0 +1,30 @@
|
||||
{{ define "main" }}
|
||||
<article class="prose max-w-3xl mx-auto py-12 px-4">
|
||||
{{ .Content }}
|
||||
|
||||
<div class="mt-12">
|
||||
<h2>{{ i18n "recent_posts" | default "Recent Articles" }}</h2>
|
||||
<div class="grid gap-8">
|
||||
{{ range first 5 .Site.RegularPages }}
|
||||
<article class="border-b pb-8">
|
||||
<h3 class="text-2xl font-newsreader mb-2">
|
||||
<a href="{{ .Permalink }}" class="text-ifk-accent hover:text-ifk-accent-hover">
|
||||
{{ .Title }}
|
||||
</a>
|
||||
</h3>
|
||||
<div class="text-sm text-gray-600 mb-4">
|
||||
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 2, 2006" }}</time>
|
||||
{{ with .Params.author }}— {{ . }}{{ end }}
|
||||
</div>
|
||||
<p class="text-lg font-newsreader leading-relaxed">
|
||||
{{ .Summary }}
|
||||
</p>
|
||||
<a href="{{ .Permalink }}" class="inline-block mt-4 text-ifk-accent hover:text-ifk-accent-hover font-medium">
|
||||
{{ i18n "read_more" | default "Read more" }} →
|
||||
</a>
|
||||
</article>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
{{ end }}
|
||||
35
layouts/_default/list.html
Normal file
35
layouts/_default/list.html
Normal file
@@ -0,0 +1,35 @@
|
||||
{{ define "main" }}
|
||||
<div class="max-w-3xl mx-auto py-12 px-4">
|
||||
<header class="mb-12">
|
||||
<h1 class="text-4xl font-newsreader font-semibold mb-4">{{ .Title }}</h1>
|
||||
{{ with .Description }}
|
||||
<p class="text-lg text-gray-600">{{ . }}</p>
|
||||
{{ end }}
|
||||
</header>
|
||||
|
||||
<div class="space-y-8">
|
||||
{{ range .Paginator.Pages }}
|
||||
<article class="pb-8 border-b last:border-b-0">
|
||||
<h2 class="text-2xl font-newsreader font-semibold mb-2">
|
||||
<a href="{{ .Permalink }}" class="text-ifk-accent hover:text-ifk-accent-hover">
|
||||
{{ .Title }}
|
||||
</a>
|
||||
</h2>
|
||||
<div class="text-sm text-gray-600 mb-3">
|
||||
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 2, 2006" }}</time>
|
||||
{{ with .Params.author }}— {{ . }}{{ end }}
|
||||
{{ if .ReadingTime }}— {{ .ReadingTime }} min read{{ end }}
|
||||
</div>
|
||||
<p class="text-lg font-newsreader leading-relaxed mb-3">
|
||||
{{ .Summary }}
|
||||
</p>
|
||||
<a href="{{ .Permalink }}" class="inline-block text-ifk-accent hover:text-ifk-accent-hover font-medium">
|
||||
{{ i18n "read_more" | default "Read more" }} →
|
||||
</a>
|
||||
</article>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
{{ template "_internal/pagination.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
63
layouts/_default/single.html
Normal file
63
layouts/_default/single.html
Normal file
@@ -0,0 +1,63 @@
|
||||
{{ define "main" }}
|
||||
<article class="prose-lg max-w-2xl mx-auto py-12 px-4">
|
||||
<header class="mb-8">
|
||||
<h1 class="text-4xl font-newsreader font-semibold mb-4 leading-tight">
|
||||
{{ .Title }}
|
||||
</h1>
|
||||
<div class="text-gray-600 flex gap-4 flex-wrap">
|
||||
{{ if .Date }}
|
||||
<time datetime="{{ .Date.Format "2006-01-02" }}">
|
||||
{{ .Date.Format "January 2, 2006" }}
|
||||
</time>
|
||||
{{ end }}
|
||||
{{ with .Params.author }}
|
||||
<span>{{ . }}</span>
|
||||
{{ end }}
|
||||
{{ if .ReadingTime }}
|
||||
<span>{{ .ReadingTime }} min read</span>
|
||||
{{ end }}
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{{ if .Params.toc | default true }}
|
||||
<aside class="mb-8 p-4 bg-gray-50 rounded">
|
||||
<h2 class="text-sm font-semibold uppercase tracking-wide mb-3">{{ i18n "table_of_contents" | default "Table of Contents" }}</h2>
|
||||
{{ .TableOfContents }}
|
||||
</aside>
|
||||
{{ end }}
|
||||
|
||||
<div class="font-newsreader text-lg leading-relaxed prose prose-newsreader">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
||||
{{ with .Params.tags }}
|
||||
<footer class="mt-12 pt-8 border-t">
|
||||
<div class="text-sm">
|
||||
<span class="font-semibold">{{ i18n "tags" | default "Tags" }}:</span>
|
||||
{{ range . }}
|
||||
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}" class="inline-block mr-2 text-ifk-accent hover:text-ifk-accent-hover">
|
||||
#{{ . }}
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</footer>
|
||||
{{ end }}
|
||||
</article>
|
||||
|
||||
{{ if or .NextInSection .PrevInSection }}
|
||||
<nav class="max-w-2xl mx-auto px-4 py-12 flex justify-between gap-4">
|
||||
{{ with .PrevInSection }}
|
||||
<a href="{{ .Permalink }}" class="flex-1 p-4 border rounded hover:bg-gray-50 text-left">
|
||||
<div class="text-xs font-semibold uppercase text-gray-600">← {{ i18n "previous" | default "Previous" }}</div>
|
||||
<div class="font-newsreader text-lg">{{ .Title }}</div>
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ with .NextInSection }}
|
||||
<a href="{{ .Permalink }}" class="flex-1 p-4 border rounded hover:bg-gray-50 text-right">
|
||||
<div class="text-xs font-semibold uppercase text-gray-600">{{ i18n "next" | default "Next" }} →</div>
|
||||
<div class="font-newsreader text-lg">{{ .Title }}</div>
|
||||
</a>
|
||||
{{ end }}
|
||||
</nav>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
324
static/css/main.css
Normal file
324
static/css/main.css
Normal file
@@ -0,0 +1,324 @@
|
||||
/* Custom font imports */
|
||||
@font-face {
|
||||
font-family: 'Newsreader';
|
||||
font-style: normal;
|
||||
font-weight: 400 700;
|
||||
font-display: swap;
|
||||
src: url(/fonts/newsreader/newsreader-latin.woff2) format('woff2');
|
||||
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: 'Newsreader';
|
||||
font-style: normal;
|
||||
font-weight: 400 700;
|
||||
font-display: swap;
|
||||
src: url(/fonts/newsreader/newsreader-latin-ext.woff2) format('woff2');
|
||||
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: 'Newsreader';
|
||||
font-style: italic;
|
||||
font-weight: 400 500;
|
||||
font-display: swap;
|
||||
src: url(/fonts/newsreader/newsreader-italic-latin.woff2) format('woff2');
|
||||
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: 'Newsreader';
|
||||
font-style: italic;
|
||||
font-weight: 400 500;
|
||||
font-display: swap;
|
||||
src: url(/fonts/newsreader/newsreader-italic-latin-ext.woff2) format('woff2');
|
||||
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;
|
||||
}
|
||||
|
||||
/* CSS Variables */
|
||||
:root {
|
||||
--ifk-font: 'Newsreader', 'Times New Roman', serif;
|
||||
--ifk-text: #1c1917;
|
||||
--ifk-bg: #fafaf9;
|
||||
--ifk-accent: #4d7c0f;
|
||||
--ifk-accent-hover: #3f6212;
|
||||
--ifk-secondary: #059669;
|
||||
}
|
||||
|
||||
/* Utility classes for colors */
|
||||
.text-ifk-accent { color: var(--ifk-accent); }
|
||||
.text-ifk-text { color: var(--ifk-text); }
|
||||
.bg-ifk-bg { background-color: var(--ifk-bg); }
|
||||
.hover\:text-ifk-accent:hover { color: var(--ifk-accent); }
|
||||
.hover\:text-ifk-accent-hover:hover { color: var(--ifk-accent-hover); }
|
||||
|
||||
/* Font family utility */
|
||||
.font-newsreader { font-family: var(--ifk-font); }
|
||||
|
||||
/* Tailwind-equivalent utilities */
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
.flex { display: flex; }
|
||||
.flex-1 { flex: 1 1 0%; }
|
||||
.flex-wrap { flex-wrap: wrap; }
|
||||
.inline-block { display: inline-block; }
|
||||
.grid { display: grid; }
|
||||
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
|
||||
.justify-between { justify-content: space-between; }
|
||||
.items-center { align-items: center; }
|
||||
.gap-4 { gap: 1rem; }
|
||||
.gap-8 { gap: 2rem; }
|
||||
.mx-auto { margin-left: auto; margin-right: auto; }
|
||||
.max-w-2xl { max-width: 42rem; }
|
||||
.max-w-3xl { max-width: 48rem; }
|
||||
.max-w-4xl { max-width: 56rem; }
|
||||
.px-4 { padding-left: 1rem; padding-right: 1rem; }
|
||||
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
|
||||
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
|
||||
.p-4 { padding: 1rem; }
|
||||
.pt-8 { padding-top: 2rem; }
|
||||
.mb-2 { margin-bottom: 0.5rem; }
|
||||
.mb-3 { margin-bottom: 0.75rem; }
|
||||
.mb-4 { margin-bottom: 1rem; }
|
||||
.mb-8 { margin-bottom: 2rem; }
|
||||
.mb-12 { margin-bottom: 3rem; }
|
||||
.mr-2 { margin-right: 0.5rem; }
|
||||
.mt-12 { margin-top: 3rem; }
|
||||
.mt-20 { margin-top: 5rem; }
|
||||
.sticky { position: sticky; }
|
||||
.top-0 { top: 0; }
|
||||
.z-40 { z-index: 40; }
|
||||
.border { border: 1px solid #e5e7eb; }
|
||||
.border-t { border-top: 1px solid #e5e7eb; }
|
||||
.border-b { border-bottom: 1px solid #e5e7eb; }
|
||||
.rounded { border-radius: 0.25rem; }
|
||||
.bg-white { background-color: #fff; }
|
||||
.bg-gray-50 { background-color: #f9fafb; }
|
||||
.text-center { text-align: center; }
|
||||
.text-left { text-align: left; }
|
||||
.text-right { text-align: right; }
|
||||
.text-xs { font-size: 0.75rem; line-height: 1rem; }
|
||||
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
|
||||
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
|
||||
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
|
||||
.text-4xl { font-size: 2.75rem; line-height: 1.15; }
|
||||
.font-semibold { font-weight: 600; }
|
||||
.uppercase { text-transform: uppercase; }
|
||||
.tracking-wide { letter-spacing: 0.025em; }
|
||||
.leading-tight { line-height: 1.25; }
|
||||
.leading-relaxed { line-height: 1.625; }
|
||||
.text-gray-600 { color: #4b5563; }
|
||||
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
|
||||
@media (min-width: 768px) { .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); } }
|
||||
|
||||
/* Global typography */
|
||||
body {
|
||||
background-color: var(--ifk-bg);
|
||||
color: var(--ifk-text);
|
||||
font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
|
||||
}
|
||||
|
||||
article, .prose {
|
||||
font-family: var(--ifk-font);
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-family: var(--ifk-font);
|
||||
color: var(--ifk-text);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
h1, .article-title {
|
||||
font-size: 2.75rem;
|
||||
line-height: 1.15;
|
||||
letter-spacing: -0.01em;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.85rem;
|
||||
line-height: 1.25;
|
||||
margin-top: 3rem;
|
||||
margin-bottom: 1.25rem;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.5rem;
|
||||
line-height: 1.3;
|
||||
margin-top: 2.5rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
/* Article content */
|
||||
article p {
|
||||
font-size: 1.375rem;
|
||||
line-height: 1.6;
|
||||
margin-bottom: 1.5rem;
|
||||
font-family: var(--ifk-font);
|
||||
}
|
||||
|
||||
/* Links */
|
||||
article a {
|
||||
color: var(--ifk-accent);
|
||||
text-decoration: underline;
|
||||
text-decoration-thickness: 1px;
|
||||
text-underline-offset: 2px;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
article a:hover {
|
||||
color: var(--ifk-accent-hover);
|
||||
text-decoration-thickness: 2px;
|
||||
}
|
||||
|
||||
/* Blockquotes */
|
||||
blockquote {
|
||||
font-family: var(--ifk-font);
|
||||
font-style: italic;
|
||||
font-size: 1.5rem;
|
||||
line-height: 1.6;
|
||||
border-left: 3px solid var(--ifk-secondary);
|
||||
padding-left: 1.5rem;
|
||||
margin: 2rem 0;
|
||||
color: var(--ifk-text);
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
/* Code blocks */
|
||||
code {
|
||||
font-family: 'Courier New', monospace;
|
||||
font-size: 0.9rem;
|
||||
background: #f3f4f6;
|
||||
padding: 0.1rem 0.4rem;
|
||||
border-radius: 0.25rem;
|
||||
}
|
||||
|
||||
pre {
|
||||
background: #1f2937;
|
||||
color: #f3f4f6;
|
||||
padding: 1.5rem;
|
||||
border-radius: 0.5rem;
|
||||
overflow-x: auto;
|
||||
font-family: 'Courier New', monospace;
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.5;
|
||||
margin: 1.5rem 0;
|
||||
}
|
||||
|
||||
pre code {
|
||||
background: none;
|
||||
color: inherit;
|
||||
padding: 0;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
/* Tables */
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 1.5rem 0;
|
||||
font-family: var(--ifk-font);
|
||||
font-size: 1.1rem;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
th, td {
|
||||
padding: 0.75rem 1rem;
|
||||
border: 1px solid #e5e7eb;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
th {
|
||||
background: #f3f4f6;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* Lists */
|
||||
ul, ol {
|
||||
margin-left: 1.5rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
li {
|
||||
margin-bottom: 0.5rem;
|
||||
font-family: var(--ifk-font);
|
||||
font-size: 1.375rem;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* Navigation */
|
||||
nav, header, footer {
|
||||
font-family: system-ui, -apple-system, sans-serif;
|
||||
}
|
||||
|
||||
nav a {
|
||||
text-decoration: none;
|
||||
transition: color 0.2s ease;
|
||||
}
|
||||
|
||||
nav a:hover {
|
||||
color: var(--ifk-accent);
|
||||
}
|
||||
|
||||
/* Article metadata */
|
||||
.article-meta, .post-meta, time, .reading-time {
|
||||
font-family: system-ui, -apple-system, sans-serif;
|
||||
font-size: 0.95rem;
|
||||
color: #6b7280;
|
||||
}
|
||||
|
||||
/* Tags */
|
||||
.taxonomy-term, [href*="/tags/"], [href*="/categories/"] {
|
||||
font-family: system-ui, -apple-system, sans-serif;
|
||||
font-size: 0.8rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
color: var(--ifk-accent);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.taxonomy-term:hover, [href*="/tags/"]:hover, [href*="/categories/"]:hover {
|
||||
color: var(--ifk-accent-hover);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Table of Contents */
|
||||
#TableOfContents {
|
||||
font-family: system-ui, -apple-system, sans-serif;
|
||||
font-size: 0.95rem;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
#TableOfContents a {
|
||||
color: var(--ifk-accent);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#TableOfContents a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Status badges (for shortcodes) */
|
||||
.csm-enforced { background: var(--ifk-accent); color: white; }
|
||||
.csm-passed { background: var(--ifk-secondary); color: white; }
|
||||
.csm-progress { background: #86efac; color: #14532d; }
|
||||
.csm-guidelines { background: #d1fae5; color: #065f46; }
|
||||
|
||||
/* Shortcode-specific overrides */
|
||||
.ifk-stat-num { font-family: var(--ifk-font); }
|
||||
.ifk-stat-label { font-family: system-ui, -apple-system, sans-serif; }
|
||||
.ifk-chart-card h4 { font-family: system-ui, -apple-system, sans-serif; }
|
||||
|
||||
/* Responsive design */
|
||||
@media (max-width: 768px) {
|
||||
h1, .article-title {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
article p, li {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
}
|
||||
Submodule themes/congo deleted from b426bf91b0
Reference in New Issue
Block a user