add projects page; move to hugo;
All checks were successful
Build and Push Docker Container / build-and-push (push) Successful in 1m59s
All checks were successful
Build and Push Docker Container / build-and-push (push) Successful in 1m59s
This commit is contained in:
9
hugo/eliaskohout.de/layouts/_default/baseof.html
Normal file
9
hugo/eliaskohout.de/layouts/_default/baseof.html
Normal file
@@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
{{- partial "head.html" . -}}
|
||||
</head>
|
||||
<body>
|
||||
{{ block "main" . }}{{ end }}
|
||||
</body>
|
||||
</html>
|
||||
28
hugo/eliaskohout.de/layouts/_default/list.html
Normal file
28
hugo/eliaskohout.de/layouts/_default/list.html
Normal file
@@ -0,0 +1,28 @@
|
||||
{{ define "main" }}
|
||||
{{- partial "background.html" . -}}
|
||||
|
||||
<main class="page-content">
|
||||
<h1>{{ .Title }}</h1>
|
||||
|
||||
<div class="project-grid">
|
||||
{{ range .Pages.ByDate.Reverse }}
|
||||
<a href="{{ .RelPermalink }}" class="project-card">
|
||||
{{ with .Params.image }}
|
||||
<img src="{{ . }}" alt="{{ $.Title }}" />
|
||||
{{ end }}
|
||||
<h2>{{ .Title }}</h2>
|
||||
<p class="tags">
|
||||
{{ range .Params.tags }}
|
||||
<span class="tag">{{ . }}</span>
|
||||
{{ end }}
|
||||
</p>
|
||||
<p>{{ .Params.summary }}</p>
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<div class="back-link">
|
||||
<a href="/">← back</a>
|
||||
</div>
|
||||
</main>
|
||||
{{ end }}
|
||||
26
hugo/eliaskohout.de/layouts/_default/single.html
Normal file
26
hugo/eliaskohout.de/layouts/_default/single.html
Normal file
@@ -0,0 +1,26 @@
|
||||
{{ define "main" }}
|
||||
{{- partial "background.html" . -}}
|
||||
|
||||
<main class="page-content">
|
||||
<h1>{{ .Title }}</h1>
|
||||
|
||||
<p class="tags">
|
||||
{{ range .Params.tags }}
|
||||
<span class="tag">{{ . }}</span>
|
||||
{{ end }}
|
||||
</p>
|
||||
|
||||
<div class="project-links">
|
||||
{{ with .Params.code }}<a href="{{ . }}">[Code]</a>{{ end }}
|
||||
{{ with .Params.demo }}<a href="{{ . }}">[Live Demo]</a>{{ end }}
|
||||
</div>
|
||||
|
||||
<article class="project-body">
|
||||
{{ .Content }}
|
||||
</article>
|
||||
|
||||
<div class="back-link">
|
||||
<a href="/projects/">← all projects</a>
|
||||
</div>
|
||||
</main>
|
||||
{{ end }}
|
||||
16
hugo/eliaskohout.de/layouts/index.html
Normal file
16
hugo/eliaskohout.de/layouts/index.html
Normal file
@@ -0,0 +1,16 @@
|
||||
{{ define "main" }}
|
||||
{{- partial "background.html" . -}}
|
||||
|
||||
<main class="centered">
|
||||
<h1>{{ .Site.Title }}</h1>
|
||||
<nav>
|
||||
<span class="nav-label">services</span>
|
||||
{{ range .Site.Params.links }}
|
||||
<a href="{{ .url }}">{{ .name }}</a>
|
||||
{{ end }}
|
||||
|
||||
<span class="nav-label">pages</span>
|
||||
<a href="/projects/">projects</a>
|
||||
</nav>
|
||||
</main>
|
||||
{{ end }}
|
||||
22
hugo/eliaskohout.de/layouts/partials/background.html
Normal file
22
hugo/eliaskohout.de/layouts/partials/background.html
Normal file
@@ -0,0 +1,22 @@
|
||||
<div class="background">
|
||||
<svg viewBox="0 0 1600 1200" preserveAspectRatio="xMidYMid slice">
|
||||
<defs>
|
||||
<filter id="glow">
|
||||
<feGaussianBlur stdDeviation="6" result="blur" />
|
||||
<feMerge>
|
||||
<feMergeNode in="blur"/>
|
||||
<feMergeNode in="SourceGraphic"/>
|
||||
</feMerge>
|
||||
</filter>
|
||||
</defs>
|
||||
<path class="flow-path glow" d="M0,600 Q400,100 800,600 T1600,600" />
|
||||
<path class="flow-path" d="M0,500 Q400,200 800,500 T1600,500" />
|
||||
<path class="flow-path glow" d="M0,700 Q400,400 800,700 T1600,700" />
|
||||
<path class="flow-path" d="M0,300 Q400,0 800,300 T1600,300" />
|
||||
<path class="flow-path glow" d="M0,900 Q400,800 800,900 T1600,900" />
|
||||
<path class="flow-path" d="M0,1000 Q400,1000 800,1000 T1600,1000" />
|
||||
<path class="flow-path glow" d="M0,1100 Q400,1200 800,1100 T1600,1100" />
|
||||
<path class="flow-path" d="M0,200 Q400,400 800,200 T1600,200" />
|
||||
<path class="flow-path glow" d="M0,100 Q400,300 800,100 T1600,100" />
|
||||
</svg>
|
||||
</div>
|
||||
10
hugo/eliaskohout.de/layouts/partials/head.html
Normal file
10
hugo/eliaskohout.de/layouts/partials/head.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>{{ .Site.Title }}</title>
|
||||
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Geist+Mono:wght@100..900&display=swap" rel="stylesheet">
|
||||
|
||||
{{ $style := resources.Get "css/style.css" | minify }}
|
||||
<link rel="stylesheet" href="{{ $style.RelPermalink }}" />
|
||||
Reference in New Issue
Block a user