Vorlage fuer eigene Ableger-Installationen: Website + CMS-Code

Bereinigt von Pilot-Spezifika (echte Inhalte, Erzbistum-Hamburg-Bezuege,
Domain-Werte) - install.env und hugo.toml [params] mit generischen
Platzhaltern. docs/ komplett entfernt: Konzept, Manifest, Installations-
anleitungen leben jetzt auf der Projekt-Website statt redundant im Repo,
README verweist dorthin. Decap-CMS-Version von einer floatenden ^3.0.0
auf ein festes 3.15.1 gepinnt.
This commit is contained in:
2026-08-23 14:37:54 +02:00
commit 5e9da58d23
65 changed files with 5073 additions and 0 deletions
+115
View File
@@ -0,0 +1,115 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Ableger – Deploy-Status</title>
<link rel="stylesheet" href="/css/style.css">
<style>
/* Standalone static page (no Decap, no nc-root needed) - a plain
HTML/JS page that talks to the small dynamic endpoints under
/admin/status/api/ (see scripts/admin-status-server.rb). Both
paths run behind the same write oauth2-proxy instance as /admin/
itself, see the installation guide on the project website. */
.status-badge {
display: inline-block;
padding: 0.2rem 0.7rem;
border-radius: 999px;
font-size: 0.85rem;
font-weight: 600;
}
.status-badge--ok { background: color-mix(in srgb, var(--color-accent) 15%, transparent); color: var(--color-accent); }
.status-badge--fail { background: rgba(200, 60, 60, 0.15); color: #c83c3c; }
.status-log {
background: var(--color-card-bg);
border: 1px solid var(--color-border);
border-radius: var(--radius);
padding: 1rem;
overflow-x: auto;
white-space: pre-wrap;
font-size: 0.85rem;
max-height: 32rem;
overflow-y: auto;
}
#trigger-status { color: var(--color-muted); font-size: 0.9rem; margin-left: 0.75rem; }
</style>
</head>
<body>
<header class="site-header">
<a class="site-title" href="/">
<img src="/img/logo.svg" alt="" class="site-logo" width="32" height="32">
<span id="site-title-text">Ableger</span>
</a>
<nav class="site-nav">
<a href="/admin/">Redaktion</a>
<a href="/">← Zur Website</a>
</nav>
</header>
<main class="site-main">
<h1>Deploy-Status</h1>
<p class="method__lead">Letzter Build (Cron alle 10 Minuten, oder manuell hier ausgelöst) inklusive Prüfskript-Ergebnissen (<code>scripts/validate.rb</code>).</p>
<section class="method__section">
<button type="button" id="trigger-button" class="button block is-primary">Build jetzt auslösen</button>
<span id="trigger-status"></span>
</section>
<section class="method__section" id="status-section">
<p>Lade Status …</p>
</section>
</main>
<script src="/admin/site-meta.js" data-title-suffix=" – Deploy-Status"></script>
<script>
const statusSection = document.getElementById('status-section');
const triggerButton = document.getElementById('trigger-button');
const triggerStatus = document.getElementById('trigger-status');
function render(data) {
if (data.error) {
statusSection.innerHTML = '<p>' + data.error + '</p>';
return;
}
const zeit = new Date(data.timestamp).toLocaleString('de-DE');
const badge = data.success
? '<span class="status-badge status-badge--ok">erfolgreich</span>'
: '<span class="status-badge status-badge--fail">fehlgeschlagen</span>';
statusSection.innerHTML =
'<h2>Letzter Lauf: ' + zeit + ' ' + badge + '</h2>' +
'<pre class="status-log"></pre>';
// Set the log via textContent instead of innerHTML, so that
// characters it contains (e.g. < > from error messages) aren't
// interpreted as HTML.
statusSection.querySelector('.status-log').textContent = data.log || '(kein Log vorhanden)';
}
function load() {
fetch('/admin/status/api/data.json')
.then(function (r) { return r.json(); })
.then(render)
.catch(function () {
statusSection.innerHTML = '<p>Status konnte nicht geladen werden.</p>';
});
}
triggerButton.addEventListener('click', function () {
triggerButton.disabled = true;
triggerStatus.textContent = 'Build läuft …';
fetch('/admin/status/api/trigger', { method: 'POST' })
.then(function (r) { return r.json(); })
.then(function (data) {
render(data);
triggerStatus.textContent = 'Fertig.';
})
.catch(function () {
triggerStatus.textContent = 'Fehlgeschlagen.';
})
.finally(function () {
triggerButton.disabled = false;
});
});
load();
</script>
</body>
</html>