diff --git a/archetypes/wiki.md b/archetypes/library.md similarity index 100% rename from archetypes/wiki.md rename to archetypes/library.md diff --git a/assets/css/custom.css b/assets/css/custom.css index 667a463..9fb5e07 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -719,19 +719,10 @@ a.byline-author:hover, a.journal-author:hover { color: var(--accent); } .dialog-hint { font-size: var(--font-size-small); color: var(--color-text-muted); align-self: center; opacity: 0.7; } .dialog-spacer { flex: 1; } -/* ── Wiki: vollbreiter Section-Header (wie Library) + zwei Spalten darunter. - Gleiche max-width/Zentrierung wie der normale Inhalt → Wiki- und Library- - Header fluchten exakt. ── */ -.wiki { - display: grid; - grid-template-columns: 200px 1fr; - column-gap: 2.6em; row-gap: var(--spacing-sm); - align-items: start; - max-width: calc(var(--container-width) + 3.5rem); - margin-inline: auto; -} -.wiki > .section-header { grid-column: 1 / -1; margin-top: 0; } -@media (max-width: 760px) { .wiki { grid-template-columns: 1fr; column-gap: 0; } .wiki-side { position: static; } } +/* ── Library/Wiki-Bereich: zentrierter Section-Header (wie Archiv) darüber, + zweispaltige Fläche (Seitenleiste + Inhalt) darunter. ── */ +.wiki { display: grid; grid-template-columns: 200px 1fr; gap: 2.6em; align-items: start; } +@media (max-width: 760px) { .wiki { grid-template-columns: 1fr; gap: 1.4em; } .wiki-side { position: static; } } .wiki-side { position: sticky; top: 1em; align-self: start; } .wiki-nav { display: flex; flex-direction: column; gap: 0.35em; font-size: var(--font-size-small); } .wiki-nav-home { text-decoration: none; color: var(--color-text-primary); font-weight: 600; } diff --git a/cms/admin/src/App.jsx b/cms/admin/src/App.jsx index 82a06c8..1a260b5 100644 --- a/cms/admin/src/App.jsx +++ b/cms/admin/src/App.jsx @@ -22,7 +22,7 @@ const hexOf = (name) => (COLORS.find((c) => c[0] === name) || [])[2] || 'transpa const LAYOUTS = ['', 'text', 'image', 'icon']; const SECTIONS = ['buerofuehrung', 'software', 'theorie']; -const KIND_LABEL = { beitrag: 'Beiträge', wiki: 'Wiki', seite: 'Seiten', rubrik: 'Rubriken' }; +const KIND_LABEL = { beitrag: 'Beiträge', biblio: 'Library', seite: 'Seiten', rubrik: 'Rubriken' }; const EMPTY = { isNew: true, path: '', type: 'beitrag', section: 'software', slug: '', @@ -89,7 +89,7 @@ function Dashboard({ email }) { const q = query.trim().toLowerCase(); const filtered = q ? entries.filter((e) => e.title.toLowerCase().includes(q) || (e.section || '').includes(q)) : entries; - const groups = { beitrag: [], wiki: [], seite: [], rubrik: [] }; + const groups = { beitrag: [], biblio: [], seite: [], rubrik: [] }; for (const e of filtered) (groups[e.kind] || groups.seite).push(e); return ( @@ -126,7 +126,7 @@ function Dashboard({ email }) {