Init Commit

This commit is contained in:
2026-05-18 11:46:02 +02:00
commit 2de3502fbc
382 changed files with 19583 additions and 0 deletions
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="{{- $.Lang }}"
{{- if .Site.Params.colorTheme.auto.disable }}
data-bs-theme="{{ .Site.Params.colorTheme.forced.theme }}"
theme-forced="true"
theme-auto="false"
{{- end }}>
<head>
{{ partial "head.html" . }}
{{ partial "head_custom.html" . }}
</head>
<body class="{{- if .IsHome }}home{{- end }}{{- with .File }} page-{{- .ContentBaseName }}{{- end }}">
{{ partial "header.html" . }}
<main class="container">
{{ block "main" . }}{{ end }}
</main>
<div class="d-print-none">
{{ partial "footer.html" . }}
</div>
{{ partial "base-foot.html" . }}
{{ block "footerfiles" . }}
{{ end }}
</body>
</html>
@@ -0,0 +1,72 @@
<!-- inject:../components/baseHead/baseHeadStart.html -->
<!DOCTYPE html>
<html lang="{{- $.Lang }}"
{{- if .Site.Params.colorTheme.auto.disable }}
data-bs-theme="{{ .Site.Params.colorTheme.forced.theme }}"
theme-forced="true"
theme-auto="false"
{{- end }}>
<head>
{{ partial "head.html" . }}
{{ partial "head_custom.html" . }}
</head>
{{/*
This template iterates through all pages in the site and logs debugging information.
For each page, it prints:
- File path (if file exists)
- Draft status
- Page type
- Section
- Kind
If a page doesn't have an associated file, it logs that information separately.
Warning levels are used to make the output visible in Hugo's build logs.
*/}}
{{ range .Site.Pages }}
{{ if .File }}
{{ warnf "Path: %s | Lang: %s | IsDraft: %t | Type: %s | Section: %s | Kind: %s" .File.Path .Lang .Draft .Type .Section .Kind }}
{{ else }}
{{ warnf "No .File for this page: Type=%s, Section=%s, Kind=%s" .Type .Section .Kind }}
{{ end }}
{{ end }}
<body class="{{ if .IsHome }}home{{ end }}">
{{ partial "header.html" . }}
{{ $home := where (where .Site.Pages "Type" "home") "Lang" .Lang }}
{{ $homeCount := len $home }}
{{ range $home }}
{{ if .File }}
{{ warnf "[HOME] Path: %s | Lang: %s | IsDraft: %t | Type: %s | Section: %s | Kind: %s" .File.Path .Lang .Draft .Type .Section .Kind }}
{{ end }}
{{ end }}
{{ if lt $homeCount 1 }}
<!-- DEFAULT -->
{{ warnf "Adritian: No homepage found for lang '%s' (%d 'home' items). Please create a home in your content folder." .Lang ($homeCount) }}
{{ warnf "Adritian: (deprecated) Using Site.Params.Sections to render homepage for lang '%s'." .Lang }}
{{ range .Site.Params.sections }}
{{ partial . $ }}
{{ end }}
{{ else }}
{{ range (sort $home "Date" "desc") }}
{{ warnf "Adritian: Using 'home' content type to render homepage." }}
<div class="container home-container">
{{ .Content | safeHTML }}
</div>
{{ end }}
{{ end }}
{{ partial "footer.html" . }}
{{ partial "base-foot.html" . }}
</body>
</html>
<!-- endinject -->
@@ -0,0 +1,5 @@
{{- $.Scratch.Add "index" slice -}}
{{- range .Site.RegularPages -}}
{{- $.Scratch.Add "index" (dict "title" .Title "tags" .Params.tags "categories" .Params.categories "contents" .Plain "permalink" .Permalink) -}}
{{- end -}}
{{- $.Scratch.Get "index" | jsonify -}}
@@ -0,0 +1,32 @@
{{ define "main" }}
<div class="list flex-grow-1">
<section id="main-content" class="section list-{{ .Kind }}">
<h1>{{ .Title }}</h1>
{{ if eq .Kind "taxonomy" }}
<ul class="list list-{{ .Kind }}">
{{ range .Data.Terms.ByCount }}
<li class="item item-{{ .Page.Kind }}">
<a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a> ({{ .Count }})
</li>
{{ end }}
</ul>
{{ else }}
{{ if eq .Site.Params.blog.listStyle "summary" }}
<div class="posts-list">
{{ range .Pages }}
<div class="row row--padded rad-animation-group rad-fade-down rad-waiting rad-animate section--border-bottom">
{{ .Render "summary" }}
</div>
{{ end }}
</div>
{{ else }}
<ul class="posts-list-simple">
{{ range .Pages }}
{{ .Render "li" }}
{{ end }}
</ul>
{{ end }}
{{ end }}
</section>
</div>
{{ end }}
@@ -0,0 +1,49 @@
{{ define "footerfiles" }}
<script src="{{ "js/fuse.min.js" | absURL }}"></script>
<script src="{{ "js/search.js" | absURL }}"></script>
<script src="{{ "js/purify.min.js" | absURL }}"></script>
{{ end }}
{{ define "main" }}
<section id="main-content" class="search-section p-3 p-lg-5 d-flex flex-column align-items-center bg-light rounded shadow-sm">
<div class="my-auto w-100" style="max-width: 760px;">
<h2 class="mb-4 text-center">Search the Site</h2>
<noscript>
<div class="alert alert-warning" role="alert">
JavaScript is required to use the search functionality, because the search takes place client-side in the web browser.
<br/>
Please enable JavaScript in your browser to use this functionality.
</div>
</noscript>
<div class="mb-5">
<form action="{{ "search" | absURL }}">
<div class="input-group">
<input id="search-query" name="s" class="form-control form-control-lg" type="search" placeholder="Type to search..." autocomplete="off" aria-label="Search" />
<button type="submit" class="input-group-text">
<i class="icon-circle-arrow-right"></i>
</button>
</div>
</form>
</div>
<div id="search-results" class="card border-0">
<div class="card-body">
<h3 class="card-title">Matching pages</h3>
<!-- Results will appear here -->
</div>
</div>
</div>
</section>
<!-- this template is sucked in by search.js and appended to the search-results div above. So editing here will adjust style -->
<script id="search-result-template" type="text/x-js-template">
<div id="summary-${key}" class="mb-4 p-3 border-bottom">
<h4 class="mb-1"><a href="${link}" class="text-decoration-none">${title}</a></h4>
<p class="mb-2 text-muted small">${snippet}</p>
${ isset tags }<span class="badge bg-primary me-1">Tags: ${tags}</span>${ end }
${ isset categories }<span class="badge bg-secondary">Categories: ${categories}</span>${ end }
</div>
</script>
{{ end }}
@@ -0,0 +1,37 @@
{{ define "main" }}
<div class="section">
<div class="container">
<div class="row">
<div class="col-12">
<h1>{{ .Title }}</h1>
{{ if .Params.description }}
<p class="lead">{{ .Params.description }}</p>
{{ end }}
<div class="content">
{{ .Content }}
</div>
{{ if .Pages }}
<div class="section-posts mt-5">
<div class="posts-list">
{{ $paginator := .Paginate (.Pages.ByDate.Reverse) }}
{{ range $paginator.Pages }}
<article class="post mb-4">
<h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
{{ if .Summary }}
<div>{{ .Summary | safeHTML }}</div>
{{ end }}
<div class="post-meta">
<small class="text-muted">{{ .Date.Format "January 2, 2006" }}</small>
</div>
</article>
{{ end }}
</div>
</div>
{{ end }}
</div>
</div>
</div>
</div>
{{ end }}
@@ -0,0 +1,12 @@
{{ define "main" }}
<section id="main">
{{ if not .Params.hideTitle }}
<h1 id="title">{{ .Title }}</h1>
{{ end }}
<div>
<article id="content">
{{ .Content }}
</article>
</div>
</section>
{{ end }}