test
Some checks failed
/ debug (push) Failing after 16s

This commit is contained in:
lubiana 2024-12-12 20:14:09 +01:00
parent 05a15b70bb
commit 979335fef0
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
951 changed files with 11214 additions and 15 deletions

View file

@ -0,0 +1,71 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ .Title }} | {{ .Site.Title }}</title>
<meta name="description" content="{{ .Description }}" />
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
{{ $css := resources.Get "css/style.css" }}
{{ $style := $css | resources.Minify | fingerprint }}
<link rel="stylesheet" href="{{ $style.RelPermalink}}">
<style type="text/css">
.intro-header::before {
{{ if isset .Params "headerimage" }}
background-image: url('/images/{{ .Params.headerimage }}');
{{ else }}
background-image: url('/images/header/header_badge.jpg');
{{ end }}
}
</style>
</style>
</head>
<body>
<input type="checkbox" id="navbar-checkbox" class="navbar-checkbox">
<nav class="headernav">
<a class="brand" href="/">{{ .Site.Title }}</a>
<ul>
{{- range site.Menus.main }}
<li>
<a href="{{ .URL }}">{{ .Name }}</a>
</li>
{{- end }}
</ul>
<label for="navbar-checkbox" class="navbar-handle"></label>
</nav>
<header class="intro-header">
<div class="container">
<div class="row">
<div class="ten offset-by-one columns">
{{- block "header" . }}
<div class="site-heading">
<h1>{{ .Site.Title }}</h1>
<hr>
<span class="subheading">{{ $.Site.Params.Subtitle }}</span>
</div>
{{- end -}}
</div>
</div>
</div>
</header>
<main>
<div class="container">
{{- block "main" . }}{{- end -}}
</div>
</main>
<footer>
<hr>
<div class="container">
<div class="row">
<div class="ten offset-by-one columns">
<p class="copyright text-muted">Copyright &copy; Leitstelle
511 &mdash; Chaos Computer Club Hannover e.V.
&mdash; <a href="/impressum/">Impressum</a>
&mdash; <a href="/satzung/">Satzung</a></p>
</div>
</div>
</div>
</footer>
</body>
</html>

View file

@ -0,0 +1,14 @@
{{ define "header" }}
<div class="post-heading">
<h1>{{ .Title }}</h1>
</div>
{{ end }}
{{ define "main" }}
<div class="row">
<div class="ten columns offset-by-one">
<article>
{{ .Content }}
</article>
</div>
</div>
{{ end }}

20
layouts/blog/list.html Normal file
View file

@ -0,0 +1,20 @@
{{ define "main" }}
{{ .Content }}
<section>
{{- range where site.RegularPages "Type" "in" site.Params.mainSections }}
<div class="row">
<div class="ten columns offset-by-one post-preview">
<a href="{{ .Permalink }}" rel="bookmark"
title="Permalink to {{ htmlEscape .Title }}">
<h2>{{ .Title }}</h2>
<h4>{{ .Summary }}...</h4>
</a>
<p class="post-meta">
Veröffentlicht {{ if isset .Params "author" }}von {{ .Params.author }} {{end}}am {{ dateFormat "Monday, 2. January 2006" .Date }}
</p>
<hr>
</div>
</div>
{{- end }}
</section>
{{ end }}

17
layouts/blog/single.html Normal file
View file

@ -0,0 +1,17 @@
{{ define "header" }}
<div class="post-heading">
<h1>{{ .Title }}</h1>
<span class="meta">
Veröffentlicht {{ if isset .Params "author" }}von {{ .Params.author }} {{end}}am {{ dateFormat "Monday, 2. January 2006" .Date }}
</span>
</div>
{{ end }}
{{ define "main" }}
<div class="row">
<div class="ten columns offset-by-one">
<article>
{{ .Content }}
</article>
</div>
</div>
{{ end }}

35
layouts/index.html Normal file
View file

@ -0,0 +1,35 @@
{{ define "main" }}
<div class="row">
<div class="ten columns offset-by-one last-posts">
{{ .Content }}
<hr>
<h4>Neueste Blogposts:</h4>
</div>
</div>
<section>
{{- range first 3 (where site.RegularPages "Type" "in" site.Params.mainSections) }}
<div class="row">
<div class="ten columns offset-by-one post-preview">
<a href="{{ .Permalink }}" rel="bookmark"
title="Permalink to {{ htmlEscape .Title }}">
<h2>{{ .Title }}</h2>
<h4>{{ .Summary }}...</h4>
</a>
<p class="post-meta"Unsere Projekte>
Veröffentlicht {{ if isset .Params "author" }}von {{ .Params.author }} {{end}}am {{ dateFormat "Monday, 2. January 2006" .Date }}
</p>
<hr>
</div>
</div>
{{- end }}
</section>
<div class="row">
<div class="ten columns offset-by-one">
<ul class="pager">
<li class="next u-pull-right">
<a href="./blog/" class="button">Archiv →</a>
</li>
</ul>
</div>
</div>
{{ end }}