Initial commit
This commit is contained in:
commit
ac26cc23f6
|
@ -0,0 +1,3 @@
|
|||
.hugo_build.lock
|
||||
public/
|
||||
resources/_gen/
|
|
@ -0,0 +1,10 @@
|
|||
{{ $name := strings.TrimPrefix (now.Format "2006-01-02-") .Name }}---
|
||||
slug: "{{ $name }}"
|
||||
title: "{{ humanize $name }}"
|
||||
date: {{ .Date }}
|
||||
menu:
|
||||
main:
|
||||
parent: Aktuelles
|
||||
draft: true
|
||||
---
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
slug: "{{ .Name }}"
|
||||
title: "{{ humanize .Name }}"
|
||||
menu:
|
||||
main:
|
||||
weight: 42
|
||||
---
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
$small: 800px;
|
||||
$large: 1000px;
|
|
@ -0,0 +1,4 @@
|
|||
$color-background: #fff;
|
||||
$color-burger: #231f20;
|
||||
$color-link: #231f20;
|
||||
$color-text: #000;
|
|
@ -0,0 +1,4 @@
|
|||
@font-face {
|
||||
font-family: "Maven Pro";
|
||||
src: local("Maven Pro"), url(/MavenPro-VariableFont:wght.ttf);
|
||||
}
|
|
@ -0,0 +1,189 @@
|
|||
@import 'breakpoints';
|
||||
@import 'colors';
|
||||
@import 'fonts';
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
background: $color-background;
|
||||
color: $color-text;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
font-family: "Maven Pro", sans-serif;
|
||||
margin: 0 auto;
|
||||
max-width: $large;
|
||||
min-height: 100vh;
|
||||
|
||||
main {
|
||||
flex-grow: 1;
|
||||
}
|
||||
}
|
||||
|
||||
header, footer {
|
||||
padding: 0 1rem;
|
||||
}
|
||||
|
||||
header {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
margin-top: 1rem;
|
||||
|
||||
nav {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.header-logo {
|
||||
height: 3.2rem;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.nav-burger {
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
main {
|
||||
padding: 1rem;
|
||||
|
||||
& > :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
& > p > img {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
footer {
|
||||
margin-bottom: 1rem;
|
||||
|
||||
nav {
|
||||
align-items: end;
|
||||
|
||||
@media screen and (min-width: $small) {
|
||||
align-items: normal;
|
||||
justify-content: end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
nav {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
&.nav-toggleable {
|
||||
flex-basis: 100%;
|
||||
max-height: 0;
|
||||
overflow-y: hidden;
|
||||
transition: max-height 0.5s;
|
||||
|
||||
.nav-toggle:checked ~ & {
|
||||
max-height: calc(var(--num-elements) * 2em);
|
||||
}
|
||||
}
|
||||
|
||||
&.pagination {
|
||||
margin-top: 2.5em;
|
||||
|
||||
:first-child {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
a, span {
|
||||
line-height: 1.5em;
|
||||
margin: 0.5em 0 0 0;
|
||||
}
|
||||
|
||||
@media screen and (min-width: $small) {
|
||||
flex-direction: row;
|
||||
|
||||
&.nav-toggleable {
|
||||
flex-basis: auto;
|
||||
max-height: max-content;
|
||||
}
|
||||
|
||||
a, span {
|
||||
margin: 0 0 0 1em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
color: $color-link;
|
||||
text-decoration: none;
|
||||
|
||||
&:hover, &.is-active {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
ol, ul {
|
||||
margin-bottom: 2em;
|
||||
padding-left: 2em;
|
||||
}
|
||||
|
||||
hr {
|
||||
color: $color-text;
|
||||
margin: 3em 0;
|
||||
}
|
||||
|
||||
.blur-on-hover {
|
||||
transition: all 500ms;
|
||||
|
||||
&:hover {
|
||||
filter: blur(5px);
|
||||
transform: scale(120%);
|
||||
}
|
||||
}
|
||||
|
||||
.nav-burger {
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 1rem;
|
||||
justify-content: space-between;
|
||||
width: 1.2rem;
|
||||
|
||||
div {
|
||||
background: $color-burger;
|
||||
height: 2px;
|
||||
transition: background 0.5s, transform 0.5s;
|
||||
}
|
||||
|
||||
.nav-toggle:checked ~ & div {
|
||||
background: transparent;
|
||||
|
||||
&:first-child {
|
||||
background: $color-burger;
|
||||
transform: translateY(0.5rem) translateY(-1px) rotate(45deg) scaleX(141%);
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
background: $color-burger;
|
||||
transform: translateY(-0.5rem) translateY(1px) rotate(-45deg) scaleX(141%);
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: $small) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.nav-toggle {
|
||||
display: none;
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
baseURL = 'https://kontakt-bamberg.de/'
|
||||
languageCode = 'de-de'
|
||||
paginate = 3
|
||||
title = 'kontakt – Das Kulturprojekt'
|
||||
|
||||
[menu]
|
||||
[[menu.footer]]
|
||||
name = "Facebook"
|
||||
url = "https://facebook.com/kontakt.Das.Kulturfestival"
|
||||
weight = 10
|
||||
[[menu.footer]]
|
||||
name = "Instagram"
|
||||
url = "https://instagram.com/kontakt_das_kulturprojekt"
|
||||
weight = 20
|
||||
|
||||
[minify]
|
||||
minifyOutput = true
|
||||
|
||||
[permalinks]
|
||||
"/" = "/:year/:month/:slug/"
|
||||
pages = "/:slug/"
|
||||
|
||||
[taxonomies]
|
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
title: Aktuelles
|
||||
menu:
|
||||
main:
|
||||
weight: 10
|
||||
---
|
||||
|
||||
![kontakt – Das Kulturfestival (Symbolbild)](/symbolbild.jpg)
|
|
@ -0,0 +1,45 @@
|
|||
{{ $currentPage := . }}
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<meta property="og:site_name" content="{{ .Site.Title }}">
|
||||
<meta property="og:title" content="{{ .Title }} – {{ .Site.Title }}">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:url" content="{{ .Permalink }}">
|
||||
<meta property="og:image" content="{{ strings.TrimRight "/" .Site.BaseURL }}/symbolbild.jpg">
|
||||
<meta property="og:locale" content="{{ .Site.LanguageCode }}">
|
||||
<title>{{ block "title" . }}{{ .Title }} | > < {{ .Site.Title }}{{ end }}</title>
|
||||
<link rel="icon" href="/icon.svg" sizes="any" type="image/svg+xml">
|
||||
{{ $style := resources.Get "style.scss" | resources.ToCSS (dict "outputStyle" "compressed") }}
|
||||
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<img alt="Logo von kontakt – dem Kulturprojekt" class="header-logo" src="/logo.svg">
|
||||
<input class="nav-toggle" id="toggleMainNav" type="checkbox">
|
||||
<label class="nav-burger" for="toggleMainNav">
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
</label>
|
||||
<nav class="nav-toggleable" style="--num-elements: {{ len .Site.Menus.main }}">
|
||||
{{ range .Site.Menus.main }}
|
||||
<a{{ if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }} class="is-active"{{ end }} href="{{ .URL }}"{{ if hasPrefix .URL "https://" }} target="_blank"{{ end }}>{{ .Name }}</a>
|
||||
{{ end }}
|
||||
</nav>
|
||||
</header>
|
||||
<main>
|
||||
{{ block "main" . }}
|
||||
{{ end }}
|
||||
</main>
|
||||
<footer>
|
||||
<nav>
|
||||
{{ range .Site.Menus.footer }}
|
||||
<a{{ if or ($currentPage.IsMenuCurrent "footer" .) ($currentPage.HasMenuCurrent "footer" .) }} class="is-active"{{ end }} href="{{ .URL }}"{{ with .Params.rel }} rel="{{ . }}"{{ end }}{{ if hasPrefix .URL "https://" }} target="_blank"{{ end }}>{{ .Name }}</a>
|
||||
{{ end }}
|
||||
</nav>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,9 @@
|
|||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
<ul>
|
||||
{{ range .Pages }}
|
||||
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
|
@ -0,0 +1,4 @@
|
|||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
{{ end }}
|
|
@ -0,0 +1,19 @@
|
|||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
{{ $pagination := .Paginate .RegularPages }}
|
||||
{{ with .Content }}{{ with $pagination.Pages }}<hr>{{ end }}{{ end }}
|
||||
{{ range $pagination.Pages }}
|
||||
<h1><a href="{{ .RelPermalink }}">{{ .Title }}</a></h1>
|
||||
{{ .Content }}
|
||||
{{ if ne .Slug (index (last 1 $pagination.Pages) 0).Slug }}<hr>{{ end }}
|
||||
{{ end }}
|
||||
{{ with $pagination }}
|
||||
{{ if gt .TotalPages 1 }}
|
||||
<nav class="pagination">
|
||||
{{ if .HasPrev }}<a href="{{ .Prev.URL }}">< Neuere Posts</a>{{ end }}
|
||||
<span>{{ .PageNumber }}/{{ .TotalPages }}</span>
|
||||
{{ if .HasNext }}<a href="{{ .Next.URL }}">Ältere Posts ></a>{{ end }}
|
||||
</nav>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
Binary file not shown.
|
@ -0,0 +1,67 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
viewBox="0 0 105.83592 105.83592"
|
||||
height="28.00242mm"
|
||||
width="28.00242mm"
|
||||
xml:space="preserve"
|
||||
version="1.1"
|
||||
id="svg2"
|
||||
sodipodi:docname="icon.svg"
|
||||
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"><sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1362"
|
||||
inkscape:window-height="721"
|
||||
id="namedview869"
|
||||
showgrid="false"
|
||||
fit-margin-top="0"
|
||||
fit-margin-left="0"
|
||||
fit-margin-right="0"
|
||||
fit-margin-bottom="0"
|
||||
units="mm"
|
||||
inkscape:zoom="1.8311151"
|
||||
inkscape:cx="25.66742"
|
||||
inkscape:cy="96.662411"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="22"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg2"
|
||||
inkscape:showpageshadow="0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#d1d1d1"
|
||||
inkscape:document-units="mm" /><metadata
|
||||
id="metadata8"><rdf:RDF><cc:Work
|
||||
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs
|
||||
id="defs6"><clipPath
|
||||
id="clipPath18"
|
||||
clipPathUnits="userSpaceOnUse"><path
|
||||
id="path20"
|
||||
d="M 0,1114.8 V 0 h 1741.01 v 1114.8 z"
|
||||
inkscape:connector-curvature="0" /></clipPath></defs><rect
|
||||
style="fill:#ffffff;stroke-width:3.79398;paint-order:stroke fill markers"
|
||||
id="rect310"
|
||||
width="105.83433"
|
||||
height="105.83433"
|
||||
x="0"
|
||||
y="0"
|
||||
rx="15.11811"
|
||||
ry="15.11811" /><path
|
||||
inkscape:connector-curvature="0"
|
||||
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||
d="M 25.83203,27.114244 C 11.6334,27.114244 0,38.747274 0,52.946274 c 0,14.19863 11.6334,25.775401 25.83203,25.775401 14.19875,0 25.77539,-11.576771 25.77539,-25.775401 0,-14.199 -11.57664,-25.83203 -25.77539,-25.83203 z m 54.22656,0 c -14.19863,0 -25.83008,11.63303 -25.83008,25.83203 0,14.19863 11.63145,25.775401 25.83008,25.775401 14.19875,0 25.77734,-11.576771 25.77734,-25.775401 0,-14.199 -11.57859,-25.83203 -25.77734,-25.83203 z m -62.14453,7.75391 h 6.16992 l 18.07617,18.07812 -18.02148,18.01953 h -6.28125 l 18.07617,-18.01953 z m 64.00195,0.0547 h 6.28125 l -18.07617,18.07618 18.07617,18.02148 H 81.9707 L 63.94921,52.999034 Z"
|
||||
id="path22"
|
||||
sodipodi:nodetypes="sssssssssscccccccccccccc" /></svg>
|
After Width: | Height: | Size: 2.9 KiB |
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 8.3 KiB |
Binary file not shown.
After Width: | Height: | Size: 387 KiB |
Loading…
Reference in New Issue