Initialize Hugo website with custom infinite-scroll theme

- Set up complete Hugo project structure with bilingual support (EN/DE)
- Create custom pyx-theme with modern, clean design
- Implement infinite scrolling single-page layout with sections
- Style with white background, black text, and blue accent color
- Add responsive navigation with smooth anchor scrolling
- Move logo assets to static/images directory
- Configure i18n translations for English and German (Swiss spelling)
- Add company data structure in data/company.yaml
- Create archetypes for consistent content frontmatter
- Update CLAUDE.md with comprehensive project documentation

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-08 14:21:10 +01:00
parent cef300360c
commit 5674fe005a
23 changed files with 898 additions and 20 deletions

View File

@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="{{ .Site.Language.Lang }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title>
<meta name="description" content="{{ if .Description }}{{ .Description }}{{ else }}{{ .Site.Params.description }}{{ end }}">
<meta name="author" content="{{ .Site.Params.author }}">
<link rel="stylesheet" href="/css/style.css">
{{ block "head" . }}{{ end }}
</head>
<body>
{{ partial "header.html" . }}
<main>
{{ block "main" . }}{{ end }}
</main>
{{ partial "footer.html" . }}
</body>
</html>

View File

@@ -0,0 +1,28 @@
{{ define "main" }}
<section>
<header>
<h1>{{ .Title }}</h1>
{{ if .Description }}
<p>{{ .Description }}</p>
{{ end }}
</header>
<div class="list">
{{ range .Pages }}
<article>
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
{{ if .Params.thumbnail }}
{{ $image := .Resources.GetMatch .Params.thumbnail }}
{{ if $image }}
<img src="{{ ($image.Resize "400x").RelPermalink }}" alt="{{ .Title }}">
{{ end }}
{{ end }}
{{ if .Description }}
<p>{{ .Description }}</p>
{{ end }}
<a href="{{ .RelPermalink }}">Read more</a>
</article>
{{ end }}
</div>
</section>
{{ end }}

View File

@@ -0,0 +1,23 @@
{{ define "main" }}
<article>
<header>
<h1>{{ .Title }}</h1>
{{ if .Params.date }}
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 2, 2006" }}</time>
{{ end }}
</header>
{{ if .Params.thumbnail }}
<figure>
{{ $image := .Resources.GetMatch .Params.thumbnail }}
{{ if $image }}
<img src="{{ ($image.Resize "800x").RelPermalink }}" alt="{{ .Title }}">
{{ end }}
</figure>
{{ end }}
<div class="content">
{{ .Content }}
</div>
</article>
{{ end }}