feat: initialize Hugo static site with Bootstrap 5.x

Initialize minimal Hugo site structure with Bootstrap 5.3.2 integration for
markusgraf.ch conversion. Implements OpenSpec proposal add-minimal-hugo-site.

Features:
- Hugo project structure with standard directories
- Base layout template (baseof.html) with Bootstrap 5.3.2 via CDN
- Homepage (index.html) and single page (single.html) templates
- Reusable partials: header, footer, navigation
- Responsive Bootstrap grid layout
- Mobile-first design with semantic HTML5
- Valid HTML output with basic accessibility features
- Taxonomies disabled for minimal site (see docs/TAXONOMIES.md)

Documentation:
- IMPLEMENTATION_SUMMARY.md - Complete implementation guide
- docs/TAXONOMIES.md - Guide for re-enabling categories/tags
- static/README.md - Guide for placing static assets

Configuration:
- hugo.toml configured for markusgraf.ch
- .gitignore for Hugo build artifacts

All 24 tasks from OpenSpec proposal completed successfully.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Markus Graf
2025-10-27 10:25:11 +01:00
co-authored by Claude
commit d36a18d28b
25 changed files with 1532 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="{{ if .Description }}{{ .Description }}{{ else }}{{ .Site.Params.description }}{{ end }}">
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title>
<!-- Bootstrap 5.x CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
{{ block "head" . }}{{ end }}
</head>
<body>
{{ partial "header.html" . }}
<main>
{{ block "main" . }}{{ end }}
</main>
{{ partial "footer.html" . }}
<!-- Bootstrap 5.x JS Bundle (includes Popper) -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
</body>
</html>
+21
View File
@@ -0,0 +1,21 @@
{{ define "main" }}
<div class="container">
<div class="row">
<div class="col-lg-8 offset-lg-2">
<article class="mt-5 mb-5">
<header class="mb-4">
<h1 class="display-5">{{ .Title }}</h1>
{{ if .Date }}
<p class="text-muted">
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 2, 2006" }}</time>
</p>
{{ end }}
</header>
<div class="content">
{{ .Content }}
</div>
</article>
</div>
</div>
</div>
{{ end }}
+14
View File
@@ -0,0 +1,14 @@
{{ define "main" }}
<div class="container">
<div class="row">
<div class="col-lg-8 offset-lg-2">
<article class="mt-5 mb-5">
<h1 class="display-4 mb-4">{{ .Title }}</h1>
<div class="content">
{{ .Content }}
</div>
</article>
</div>
</div>
</div>
{{ end }}
+9
View File
@@ -0,0 +1,9 @@
<footer class="bg-light mt-5 py-4">
<div class="container">
<div class="row">
<div class="col-12 text-center text-muted">
<p class="mb-0">&copy; {{ now.Year }} {{ .Site.Title }}. All rights reserved.</p>
</div>
</div>
</div>
</footer>
+11
View File
@@ -0,0 +1,11 @@
<header>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container">
<a class="navbar-brand" href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
{{ partial "nav.html" . }}
</div>
</nav>
</header>
+12
View File
@@ -0,0 +1,12 @@
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto">
<li class="nav-item">
<a class="nav-link{{ if .IsHome }} active{{ end }}" aria-current="page" href="{{ .Site.BaseURL }}">Home</a>
</li>
{{ range .Site.Menus.main }}
<li class="nav-item">
<a class="nav-link" href="{{ .URL }}">{{ .Name }}</a>
</li>
{{ end }}
</ul>
</div>