commit 1af637072aeb8926f72e89ea8fd27122e4ece179 Author: Stefan Ritter Date: Sun Apr 2 21:32:50 2023 +0200 Init diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..ee7d6a5 --- /dev/null +++ b/LICENSE @@ -0,0 +1,14 @@ + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Sam Hocevar + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. + diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..005458d --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,9 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +image: "/img/" +imageAlt: "" +order: "x" +--- + diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..e69de29 diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..5f8e2ec --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,11 @@ + + + {{- partial "head.html" . -}} + + {{- partial "header.html" . -}} +
+ {{- block "main" . }}{{- end }} +
+ {{- partial "footer.html" . -}} + + diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..e69de29 diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..e69de29 diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..ae607c8 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,3 @@ +{{ partial "head" . }} +{{ partial "body" . }} +{{ partial "foot" . }} diff --git a/layouts/partials/body.html b/layouts/partials/body.html new file mode 100644 index 0000000..ebb0f77 --- /dev/null +++ b/layouts/partials/body.html @@ -0,0 +1,37 @@ + +
+
+ {{ .Params.imageAlt }} +
+
+
+

{{ .Title }}

+ {{ .Content }} +
+
+
+{{ range .Pages.ByParam "order" -}} +{{ $filename := .File.BaseFileName -}} +{{ $id := lower .Title -}} +{{ $id := replace $id " " "" -}} +
+ {{ with .Site.GetPage $filename -}} +
+ {{ .Params.imageAlt }} +
+
+
+

{{ .Title }}

+ {{ .Content }} +
+
+ {{ end -}} +
+{{ end -}} diff --git a/layouts/partials/foot.html b/layouts/partials/foot.html new file mode 100644 index 0000000..308b1d0 --- /dev/null +++ b/layouts/partials/foot.html @@ -0,0 +1,2 @@ + + diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..5b6b902 --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,9 @@ + + + + + + {{ .Site.Title }} + + + diff --git a/static/css/style.css b/static/css/style.css new file mode 100644 index 0000000..4e5a2d4 --- /dev/null +++ b/static/css/style.css @@ -0,0 +1,121 @@ +@font-face { + font-family: 'Semana'; + src: url('/fonts/SemanaSerif-Regular.woff'); +} + +* { + margin: 0; + padding: 0; +} + +body { + background-color: white; + font-family: 'Semana'; + font-size: 14px; + color: black; + overflow-x: hidden; +} + +.navbar { + position: fixed; + top: 0; + width: 100vw; + height: 50px; + text-align: center; + background: white; + z-index: 99; +} + +.navbar a { + padding: 0 10px; + height: 50px; + line-height: 50px; + display: inline-block; +} + +.full { + width: 100vw; + height: 100vh; + display: flex; + flex-direction: row; +} + +.half { + width: 50%; + height: 100%; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; +} + +.half:first-child { + border-right: 1px dashed #c0c0c0; +} + +.box { + width: 320px; +} + +a { + text-decoration: none; + color: #ed1a48; +} + +p { + padding: 10px 0; + text-align: justify; +} + +img { + width: 80%; + max-width: 400px; + outline: 10px solid white; + box-shadow: 0 0 15px 0px black; + transform: rotate(1deg); +} + +h1 { + font-size: 2em; + font-weight: normal; + padding: 20px 0; + text-align: center; +} + +h2 { + font-size: 1.6em; + font-weight: normal; + padding: 20px 0; + text-align: center; +} + +ul { + padding-bottom: 20px; + list-style-type: none; + text-align: center; +} + +ul li { + padding: 3px 0; +} + +ul li p { + padding: 0; +} + +@media screen and (max-width: 800px) { + #start { + padding-top: 25px; + } + + .full { + flex-direction: column; + height: auto; + } + + .half { + width: 100%; + padding: 50px 0; + } +} + diff --git a/static/fonts/SemanaSerif-Regular.woff b/static/fonts/SemanaSerif-Regular.woff new file mode 100644 index 0000000..d2faa1b Binary files /dev/null and b/static/fonts/SemanaSerif-Regular.woff differ diff --git a/theme.toml b/theme.toml new file mode 100644 index 0000000..3db38dd --- /dev/null +++ b/theme.toml @@ -0,0 +1,12 @@ +name = "gideonstar" +license = "WTFPL" +description = "gideonstar's Hugo Theme" +homepage = "https://about.stefanritter.de" +tags = ['light', 'portfolio', 'minimal'] +features = ['responsive'] +min_version = "0.111" + +[author] + name = "Stefan Ritter" + homepage = "https://about.stefanritter.de" +