mirror of
https://github.com/agresdominik/website.git
synced 2026-04-21 18:05:53 +00:00
Inital
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<footer class="bottombar">
|
||||
<div class="bottombar-content">
|
||||
<nav class="footer-links">
|
||||
<a href="/impressum/">Impressum</a> ·
|
||||
<a href="/datenschutz/">Datenschutz</a> ·
|
||||
<a href="mailto:{{ .Site.Params.email}}">Email</a>
|
||||
<a href="/publickey.asc">PGP-Key</a>
|
||||
</nav>
|
||||
<div class="copyright">© {{ now.Format "2006" }} {{ .Site.Params.name | default "Your Name" }}</div>
|
||||
</div>
|
||||
</footer>
|
||||
@@ -0,0 +1,10 @@
|
||||
<div class="infobox">
|
||||
<div class="infobox-content">
|
||||
<span class="infobox-label">Date Published:</span>
|
||||
<span class="infobox-value">{{ .Date | time.Format "January 2, 2006" }}</span>
|
||||
</div>
|
||||
<div class="infobox-content">
|
||||
<span class="infobox-label">Read time: </span>
|
||||
<span class="infobox-value">{{ printf " %d minute(s)" .ReadingTime }}</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,13 @@
|
||||
<header class="topbar">
|
||||
<div class="topbar-content">
|
||||
<em>
|
||||
<a href="{{ "/" | relURL }}" class="site-title">
|
||||
{{ .Site.Title }}
|
||||
</a>
|
||||
</em>
|
||||
<nav class="nav-links">
|
||||
<a href="{{ "blog/" | relURL }}">~/blog</a>
|
||||
<a href="{{ "whoami/" | relURL }}">~/whoami</a>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
@@ -0,0 +1,27 @@
|
||||
<style>
|
||||
#typedText::after {
|
||||
content: "|";
|
||||
animation: blink 0.7s infinite;
|
||||
}
|
||||
@keyframes blink {
|
||||
50% { opacity: 0; }
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
const text = "{{ .Title }}"; // dynamically type the page title
|
||||
const element = document.getElementById("typedText");
|
||||
let index = 0;
|
||||
|
||||
function type() {
|
||||
if (index < text.length) {
|
||||
element.textContent += text.charAt(index);
|
||||
index++;
|
||||
setTimeout(type, 120); // typing speed in ms
|
||||
}
|
||||
}
|
||||
|
||||
type();
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,24 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<link rel="preconnect" href="https://rsms.me/">
|
||||
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
|
||||
<link rel="stylesheet" href="/css/style.css">
|
||||
<meta charset="UTF-8">
|
||||
<title> {{ .Site.Params.browserTitle }} :: {{ .Title }} </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
{{ partial "topbar.html" . }}
|
||||
|
||||
<main>
|
||||
{{ block "main" . }}{{ end }}
|
||||
</main>
|
||||
|
||||
{{ partial "bottombar.html" . }}
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,13 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<article>
|
||||
|
||||
<h1>{{ .Title }}</h1>
|
||||
|
||||
{{ partial "infobox.html" . }}
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
</article>
|
||||
|
||||
{{ end }}
|
||||
@@ -0,0 +1,8 @@
|
||||
{{ define "main" }}
|
||||
|
||||
{{ with .Site.GetPage "page" "home" }}
|
||||
{{ .Content }}
|
||||
{{ partial "typed.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
@@ -0,0 +1,11 @@
|
||||
{{ define "main" }}
|
||||
|
||||
{{ .Title }}
|
||||
|
||||
<ul>
|
||||
{{ range .Pages }}
|
||||
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
{{ end }}
|
||||
@@ -0,0 +1,11 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<article>
|
||||
|
||||
<h1>{{ .Title }}</h1>
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
</article>
|
||||
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user