Initial commit
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
{{ define "main" }}
|
||||
<div class="flex justify-center">
|
||||
<div class="flex w-3/4 min-h-[80vh]">404 - Page not found</div>
|
||||
</div>
|
||||
{{/* {{ .Content }} */}} {{ end }}
|
||||
@@ -0,0 +1,35 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
{{- partial "head.html" . -}}
|
||||
<body>
|
||||
<div class="bg-neutral-100">
|
||||
<div
|
||||
class="flex flex-col min-h-screen md:border-x-[20px] border-primary-400"
|
||||
>
|
||||
<div class="bg-primary-400 md:h-5 md:sticky top-0"></div>
|
||||
{{- partial "header.html" . -}}
|
||||
<div class="mb-8 grow">
|
||||
<div class="" id="content">
|
||||
<div class="flex justify-center">
|
||||
<div class="md:w-2/3 md:px-0 px-8">
|
||||
{{- block "main" . }}{{- end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{- partial "footer.html" . -}}
|
||||
|
||||
<div class="lg:h-5 sticky bottom-0 bg-primary-400 grow-0"></div>
|
||||
</div>
|
||||
<button
|
||||
id="to-top-button"
|
||||
onclick="goToTop()"
|
||||
title="Go To Top"
|
||||
class="hidden md:hidden fixed z-90 bottom-6 right-8 border-0 w-20 h-20 rounded-full drop-shadow-md hover:bg-primary-500 border-4 border-white bg-primary-400 text-white text-4xl font-bold"
|
||||
>
|
||||
↑
|
||||
</button>
|
||||
<script src="/js/top-arrow.js"></script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1 @@
|
||||
<div>{{ .Content }}</div>
|
||||
@@ -0,0 +1 @@
|
||||
{{ define "main"}} {{ range .Pages }} {{ .Title }} {{ end }} {{ end }}
|
||||
@@ -0,0 +1,20 @@
|
||||
{{ define "main"}}
|
||||
<article class="prose prose-lg mt-10">
|
||||
<h1 class="text-neutral-600">{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
</article>
|
||||
|
||||
<div class="flex flex-row justify-between">
|
||||
<div>
|
||||
{{ if .PrevPage }}
|
||||
<a href="{{ .PrevPage.Permalink}}">{{ .PrevPage.Title }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div>
|
||||
{{ if .NextPage }}
|
||||
<a href="{{ .NextPage.Permalink}}">{{ .NextPage.Title }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ end }}
|
||||
@@ -0,0 +1,18 @@
|
||||
{{ define "main" }}
|
||||
{{ $p := where site.RegularPages "Type" "blog" }}
|
||||
<div class="mx-2 md:mx-0">
|
||||
<img src="/img/header.jpg" class="lg:w-full my-4" />
|
||||
</div>
|
||||
<div class="flex flex-col lg:flex-row px-6 md:px-0">
|
||||
<div class="basis-1/1 lg:basis-2/3 lg:mr-6 min-h-[200vh] border-2">
|
||||
{{ range (.Paginate $p 3 ).Pages }}
|
||||
{{- partial "blog-preview-homepage.html"
|
||||
.
|
||||
-}}
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="basis-1/1 lg:basis-1/3 border-2 min-h-[200vh]"></div>
|
||||
</div>
|
||||
|
||||
{{/* {{ .Content }} */}}
|
||||
{{ end }}
|
||||
@@ -0,0 +1,4 @@
|
||||
<div>
|
||||
<div><a href="{{ .Permalink }}">{{ .Title }}</a></div>
|
||||
<div>{{ .Summary }}</div>
|
||||
</div>
|
||||
@@ -0,0 +1,17 @@
|
||||
<footer
|
||||
class="bg-neutral-100 relative bottom-0 w-full border-t-2 border-neutral-300"
|
||||
>
|
||||
<div class="flex justify-center">
|
||||
<div class="w-full md:w-2/3 px-4 md:px-0">
|
||||
<div class="flex grid-rows-1 grid-cols-3 justify-between items-center">
|
||||
<div>
|
||||
<a href="/" class="" aria-label="logo">
|
||||
<span class="text-lg text-primary-400"> Knäckeboot </span>
|
||||
</a>
|
||||
</div>
|
||||
<div>Platzhalter</div>
|
||||
<div>Weiterer Platzhalter</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
@@ -0,0 +1,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Knäckebootcrew</title>
|
||||
{{ $styles := resources.Get "style.css" }}
|
||||
<link rel="stylesheet" href="{{ $styles.Permalink }}" />
|
||||
</head>
|
||||
@@ -0,0 +1,18 @@
|
||||
<header
|
||||
class="md:bg-white bg-primary-400 md:sticky md:top-5 top-0 w-full border-b-2 border-neutral-300 shadow-md"
|
||||
>
|
||||
<div class="flex justify-center">
|
||||
<div
|
||||
class="flex grid-rows-1 grid-cols-2 justify-between items-center w-full md:w-2/3 px-6 md:px-0"
|
||||
>
|
||||
<a href="/" class="flex flex-row items-center" aria-label="logo">
|
||||
<img class="w-20 py-4" src="/img/logo.svg" />
|
||||
<h1 class="text-4xl text-primary-400 ml-4 font-bold hidden lg:inline">
|
||||
Das Knäckeboot
|
||||
</h1>
|
||||
</a>
|
||||
|
||||
{{- partial "main-menu.html" . -}}
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
@@ -0,0 +1,65 @@
|
||||
<nav>
|
||||
<div class="hidden md:flex">
|
||||
{{ range .Site.Menus.main }}
|
||||
<a
|
||||
class="px-2 mx-2 text-lg text-primary-500 font-semibold hover:underline"
|
||||
href="{{ .URL }}"
|
||||
>{{ .Name }}</a
|
||||
>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<div class="md:hidden mr-4 pt-4">
|
||||
<button class="navbar-burger">
|
||||
<svg viewBox="0 0 10 8" width="" class="w-10">
|
||||
<path
|
||||
d="M1 1h8M1 4h 8M1 7h8"
|
||||
stroke="#FFFFFF"
|
||||
stroke-width="1"
|
||||
stroke-linecap="round"
|
||||
/>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<nav class="navbar-menu absolute hidden">
|
||||
<div class="navbar-backdrop fixed inset-0 bg-gray-800 opacity-25"></div>
|
||||
<div
|
||||
class="fixed top-0 left-0 bottom-0 flex flex-col w-5/6 max-w-sm bg-primary-400 border-r-2 border-neutral-300 overflow-y-auto"
|
||||
>
|
||||
<div
|
||||
class="grid grid-rows-1 grid-cols-2 justify-between items-center mb-8 bg-white shadow-md"
|
||||
>
|
||||
<a href="/"> <img class="w-20 py-4 ml-6" src="/img/logo.svg" /></a>
|
||||
<button class="navbar-close ml-auto mr-6">
|
||||
<svg
|
||||
class="h-10 w-10 text-primary-400 cursor-pointer hover:text-primary-500"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
fill="none"
|
||||
viewBox="0 0 24 24"
|
||||
stroke="currentColor"
|
||||
>
|
||||
<path
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="2"
|
||||
d="M6 18L18 6M6 6l12 12"
|
||||
></path>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
<div class="mt-8 grid grid-cols-1 gap-y-4">
|
||||
{{ range .Site.Menus.main }}
|
||||
|
||||
<a
|
||||
class="text-l mx-4 p-4 font-semibold text-white text-center no-underline hover:bg-primary-500 rounded"
|
||||
href="{{ .URL }}"
|
||||
>{{ .Name }}</a
|
||||
>
|
||||
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<script src="js/mobile-menu.js"></script>
|
||||
Reference in New Issue
Block a user