Compare commits

...

2 Commits

Author SHA1 Message Date
ae
8d47065573
docs: readme with config template 2024-12-09 20:10:44 +02:00
ae
35c4ca5eb4
feat: initial skeleton + landing styling done 2024-12-09 20:10:02 +02:00
17 changed files with 342 additions and 6 deletions

2
.gitignore vendored
View File

@ -13,3 +13,5 @@ hugo.linux
# Temporary lock file while building
/.hugo_build.lock
# Configs (testing)
hugo.yaml

20
LICENSE
View File

@ -1,9 +1,21 @@
MIT License
Copyright (c) 2024 ae
Copyright (c) [year] [fullname]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -1,3 +1,46 @@
# thunderball
<div align="center" style="padding: 20px;">
<img src="./docs/media/thunderball.jpeg" alt="Thunderball" width="80%" style="padding-bottom: 15px">
<h1 style="padding-top: 15px">Thunderball</h1>
</div>
Ultra-minimalistic Hugo theme for golfed.xyz
### Configuration
```yaml
baseURL: https://example.com/
title: Example
language: en-GB
params:
contacts:
- name: email
url: mailto:hello@example.org
display: hello@example.org
- name: matrix
url: https://matrix.to/#/@hello:example.org
display: "@hello:example.org"
# ...
others:
- name: .onion
url: http://exampledkoip1xka89xmlawooedj.onion
display: example...awooedj.onion
# ...
services:
- name: blog
url: /blog
# ...
assets:
favicon: favicon.ico
favicon16: favicon-16x16.png
favicon32: favicon-32x32.png
appleTouchIcon: apple-touch-icon.png
safariPinnedTabIcon: safari-pinned-tab.svg
safariPinnedTabColor: "#0a0a0a"
manifest: manifest.json
msTileColor: "#0a0a0a"
msTileIcon: mstile-150x150.png
themeColor: "#0a0a0a"
logo: logo.svg
```

5
archetypes/default.md Normal file
View File

@ -0,0 +1,5 @@
+++
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
date = {{ .Date }}
draft = true
+++

65
assets/css/style.css Normal file
View File

@ -0,0 +1,65 @@
:root {
--background: #0a0a0a;
--highlight: #fdc500;
--text: #a9d6e5;
}
body {
margin: 0;
padding: 0;
font-family: 'Courier New', monospace;
background-color: var(--background);
color: var(--text);
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.main-content {
max-width: 1000px;
padding: 20px;
}
.ascii-art {
white-space: pre;
font-size: 14px;
line-height: 1.2;
text-align: center;
color: var(--highlight);
margin-bottom: 20px;
}
.links {
text-align: center;
margin-top: 20px;
}
.links a {
color: var(--text);
text-decoration: none;
margin: 0 10px;
transition: color 0.3s ease;
display: inline-block;
}
.links a:hover {
color: var(--highlight);
}
.separator {
content: "•";
display: block;
text-align: center;
margin: 15px auto;
color: var(--highlight);
}
h1 {
color: var(--highlight);
}
.date {
font-style: italic;
color: var(--highlight);
margin-bottom: 20px;
}
.error-message {
text-align: center;
color: var(--text);
margin-top: 20px;
font-size: 1.2em;
}

BIN
docs/media/thunderball.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 257 KiB

35
layouts/404.html Normal file
View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html lang="{{ .Site.Language.Lang }}">
<head>
{{ partial "head.html" . }}
</head>
<body>
<div class="main-content">
<p class="ascii-art">
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣠⣤⣶⣶⣶⣶⣦⣤⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣴⣿⡟⠋⠉⣴⠟⠁⠉⠙⣻⣶⣬⣽⣿⣷⣤⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⣤⡿⠋⣤⣾⠿⢛⡿⠻⣷⣶⠿⠛⠉⠁⢻⣆⠀⠈⠙⣿⣷⣀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⣠⣿⠋⣿⢿⣥⢸⣧⣿⣾⢛⣁⣻⣤⣤⣤⣤⣤⣿⣀⠀⠀⠈⣷⠙⣷⡀⠀⠀⠀⠀
⠀⠀⠀⠀⣾⣟⣤⣾⣷⣶⣾⣿⣿⣿⣟⣉⡉⢸⡇⠀⠀⠀⠀⢸⡏⠛⠻⢷⣾⣇⠀⢿⣄⠀⠀⠀
⠀⠀⠀⣾⡿⠋⢰⣇⣶⢟⣿⣿⣿⠻⣦⠉⢙⣿⢷⣦⣄⠀⠀⣼⠃⠀⠀⠀⠀⣿⠿⣦⣿⣆⠀⠀
⠀⠀⣾⣿⠀⣤⡿⣯⣠⡟⢰⡏⢻⡄⠈⣿⣿⠁⠀⠀⠈⠛⢿⣿⡀⠀⠀⠀⢠⡟⠀⠈⢻⣿⡆⠀
⠀⢰⡏⣿⡿⠉⠀⣼⢿⣦⣿⣤⣼⣿⠟⠁⠙⣷⡀⠀⠀⢀⡿⠀⠙⢿⣦⠀⣾⠃⠀⠀⢈⡟⣿⠀
⠀⣿⣰⣿⠀⠀⣼⠏⠀⢠⡟⠀⠀⣿⡀⠀⠀⠀⢻⣆⣴⠟⠀⠀⠀⠀⠈⢻⣿⡀⠀⠀⢸⡇⠹⣇
⢀⣿⡟⠹⣦⣰⠏⠀⠀⢸⡇⠀⠀⠘⣧⠀⠀⠀⣤⡿⣿⡀⠀⠀⠀⠀⢠⡿⠀⠻⣦⠀⣿⠁⠀⣿
⢸⣿⠀⠀⢙⣿⣤⡀⠀⣿⠀⠀⠀⠀⣿⣤⣾⠟⠁⠀⠀⢿⣄⠀⠀⣰⠟⠀⠀⠀⠈⣿⣟⠀⢀⣿
⢸⣿⡀⠀⣾⠁⠈⠙⠛⣿⠿⠿⠟⠛⠉⣷⠀⠀⠀⠀⠀⠀⠹⣧⣾⠋⠀⠀⠀⠀⢠⡿⢻⣆⣸⣿
⠈⣏⣿⡀⣿⠀⠀⠀⠀⣿⠀⠀⠀⠀⠀⢻⡄⠀⠀⠀⠀⣠⣾⠛⣷⡀⠀⠀⠀⣠⡟⠀⠀⢻⡿⣿
⠀⣿⠀⢻⣧⡀⠀⠀⠀⣿⠀⠀⠀⠀⠀⠀⣿⠀⣠⣶⠿⠉⠀⠀⠈⢿⡄⢀⣾⠋⠀⠀⠀⣿⣿⡏
⠀⠸⣧⢸⡇⠛⠿⣶⣤⣿⣀⣀⣤⣤⣴⣶⠿⣿⠉⠀⠀⠀⠀⠀⠀⠀⣿⡟⠀⠀⠀⢀⣿⠁⣿⠀
⠀⠀⢿⣦⣷⠀⠀⠀⠀⢸⡇⠉⠀⠀⠀⠀⠀⢻⡆⠀⠀⠀⠀⣀⣶⠟⠁⢿⡄⠀⣠⡿⠀⣼⠏⠀
⠀⠀⠀⢿⣿⣤⡀⠀⠀⠀⣿⠀⠀⠀⠀⠀⠀⠀⢿⡀⣀⣴⠿⠋⠀⠀⠀⠀⣿⣾⠋⠀⣴⠏⠀⠀
⠀⠀⠀⠀⢻⣿⠛⢿⣶⣤⣽⣄⣀⣀⣠⣤⣴⣶⠿⣿⠉⠀⠀⠀⠀⠀⣠⣾⠋⣿⠀⣾⠋⠀⠀⠀
⠀⠀⠀⠀⠀⠙⣿⣄⠀⠀⠀⣿⠉⠉⠁⠀⠀⠀⠀⠈⣿⠀⠀⣠⣶⠟⠉⠀⠀⣽⡿⠁⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠙⣿⣶⣤⣈⣿⡀⠀⠀⢀⣀⣀⣤⣾⣿⡛⠉⠀⠀⢀⣴⠿⠉⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠻⢿⣭⣿⣟⡛⠋⠉⠉⠀⠀⠀⢿⣦⣶⠿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠙⠛⠻⠿⠿⠿⠛⠛⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
</p>
<p class="error-message">404 Page Not Found</p>
</div>
</body>
</html>

View File

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="{{ or site.Language.LanguageCode site.Language.Lang }}" dir="{{ or site.Language.LanguageDirection `ltr` }}">
<head>
{{ partial "head.html" . }}
</head>
<body>
<main>
{{ block "main" . }}{{ end }}
</main>
<footer>
{{ partial "footer.html" . }}
</footer>
</body>
</html>

View File

@ -0,0 +1,12 @@
{{ define "main" }}
<div class="main-content">
<h1>{{ .Title }}</h1>
{{ range .Pages }}
<article>
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<p class="date">{{ .Date.Format "January 02, 2006" }}</p>
<p>{{ .Summary }}</p>
</article>
{{ end }}
</div>
{{ end }}

View File

@ -0,0 +1,14 @@
{{ define "main" }}
<div class="main-content">
<h1>{{ .Title }}</h1>
<p class="date">{{ .Date.Format "January 02, 2006" }}</p>
{{ with .Params.originalPost }}
<p><em>Originally posted on <a href="{{ .url }}">{{ .source }}</a></em></p>
{{ end }}
<div class="content">
{{ .Content }}
</div>
</div>
{{ end }}

51
layouts/index.html Normal file
View File

@ -0,0 +1,51 @@
<!DOCTYPE html>
<html lang="{{ .Site.Language.Lang }}">
<head>
{{ partial "head.html" . }}
</head>
<body>
<div class="main-content">
<p class="ascii-art">
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣠⣤⣶⣶⣶⣶⣦⣤⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣴⣿⡟⠋⠉⣴⠟⠁⠉⠙⣻⣶⣬⣽⣿⣷⣤⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⣤⡿⠋⣤⣾⠿⢛⡿⠻⣷⣶⠿⠛⠉⠁⢻⣆⠀⠈⠙⣿⣷⣀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⣠⣿⠋⣿⢿⣥⢸⣧⣿⣾⢛⣁⣻⣤⣤⣤⣤⣤⣿⣀⠀⠀⠈⣷⠙⣷⡀⠀⠀⠀⠀
⠀⠀⠀⠀⣾⣟⣤⣾⣷⣶⣾⣿⣿⣿⣟⣉⡉⢸⡇⠀⠀⠀⠀⢸⡏⠛⠻⢷⣾⣇⠀⢿⣄⠀⠀⠀
⠀⠀⠀⣾⡿⠋⢰⣇⣶⢟⣿⣿⣿⠻⣦⠉⢙⣿⢷⣦⣄⠀⠀⣼⠃⠀⠀⠀⠀⣿⠿⣦⣿⣆⠀⠀
⠀⠀⣾⣿⠀⣤⡿⣯⣠⡟⢰⡏⢻⡄⠈⣿⣿⠁⠀⠀⠈⠛⢿⣿⡀⠀⠀⠀⢠⡟⠀⠈⢻⣿⡆⠀
⠀⢰⡏⣿⡿⠉⠀⣼⢿⣦⣿⣤⣼⣿⠟⠁⠙⣷⡀⠀⠀⢀⡿⠀⠙⢿⣦⠀⣾⠃⠀⠀⢈⡟⣿⠀
⠀⣿⣰⣿⠀⠀⣼⠏⠀⢠⡟⠀⠀⣿⡀⠀⠀⠀⢻⣆⣴⠟⠀⠀⠀⠀⠈⢻⣿⡀⠀⠀⢸⡇⠹⣇
⢀⣿⡟⠹⣦⣰⠏⠀⠀⢸⡇⠀⠀⠘⣧⠀⠀⠀⣤⡿⣿⡀⠀⠀⠀⠀⢠⡿⠀⠻⣦⠀⣿⠁⠀⣿
⢸⣿⠀⠀⢙⣿⣤⡀⠀⣿⠀⠀⠀⠀⣿⣤⣾⠟⠁⠀⠀⢿⣄⠀⠀⣰⠟⠀⠀⠀⠈⣿⣟⠀⢀⣿
⢸⣿⡀⠀⣾⠁⠈⠙⠛⣿⠿⠿⠟⠛⠉⣷⠀⠀⠀⠀⠀⠀⠹⣧⣾⠋⠀⠀⠀⠀⢠⡿⢻⣆⣸⣿
⠈⣏⣿⡀⣿⠀⠀⠀⠀⣿⠀⠀⠀⠀⠀⢻⡄⠀⠀⠀⠀⣠⣾⠛⣷⡀⠀⠀⠀⣠⡟⠀⠀⢻⡿⣿
⠀⣿⠀⢻⣧⡀⠀⠀⠀⣿⠀⠀⠀⠀⠀⠀⣿⠀⣠⣶⠿⠉⠀⠀⠈⢿⡄⢀⣾⠋⠀⠀⠀⣿⣿⡏
⠀⠸⣧⢸⡇⠛⠿⣶⣤⣿⣀⣀⣤⣤⣴⣶⠿⣿⠉⠀⠀⠀⠀⠀⠀⠀⣿⡟⠀⠀⠀⢀⣿⠁⣿⠀
⠀⠀⢿⣦⣷⠀⠀⠀⠀⢸⡇⠉⠀⠀⠀⠀⠀⢻⡆⠀⠀⠀⠀⣀⣶⠟⠁⢿⡄⠀⣠⡿⠀⣼⠏⠀
⠀⠀⠀⢿⣿⣤⡀⠀⠀⠀⣿⠀⠀⠀⠀⠀⠀⠀⢿⡀⣀⣴⠿⠋⠀⠀⠀⠀⣿⣾⠋⠀⣴⠏⠀⠀
⠀⠀⠀⠀⢻⣿⠛⢿⣶⣤⣽⣄⣀⣀⣠⣤⣴⣶⠿⣿⠉⠀⠀⠀⠀⠀⣠⣾⠋⣿⠀⣾⠋⠀⠀⠀
⠀⠀⠀⠀⠀⠙⣿⣄⠀⠀⠀⣿⠉⠉⠁⠀⠀⠀⠀⠈⣿⠀⠀⣠⣶⠟⠉⠀⠀⣽⡿⠁⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠙⣿⣶⣤⣈⣿⡀⠀⠀⢀⣀⣀⣤⣾⣿⡛⠉⠀⠀⢀⣴⠿⠉⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠻⢿⣭⣿⣟⡛⠋⠉⠉⠀⠀⠀⢿⣦⣶⠿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠙⠛⠻⠿⠿⠿⠛⠛⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
</p>
<div class="links">
{{ range .Site.Params.services }}
<a href="{{ .url }}" title="{{ .name }}">{{ .name }}</a>
{{ end }}
</div>
<div class="separator">•••</div>
<div class="links">
{{ range .Site.Params.contacts }}
<a href="{{ .url }}" title="{{ .display }}">{{ .name }}</a>
{{ end }}
</div>
<div class="separator">•••</div>
<div class="links">
{{ range .Site.Params.others }}
<a href="{{ .url }}" title="{{ .display }}">{{ .name }}</a>
{{ end }}
</div>
</div>
</body>
</html>

View File

@ -0,0 +1 @@
<p>Copyright {{ now.Year }}. All rights reserved.</p>

View File

@ -0,0 +1,57 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Assets (cache busting applied )-->
{{ partialCached "head/css.html" . }}
<!-- Title -->
<title>{{ if eq .RelPermalink "/404.html" }}404 | {{ .Site.Title }}{{ else if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title>
<!-- Metadata -->
<meta name="description" content="{{ site.Params.description }}" />
<meta name="robots" content="index, follow" />
<meta name="canonical" href="{{ .Permalink }}" />
<!-- Icons -->
<link
rel="apple-touch-icon"
sizes="180x180"
href="{{ site.Params.assets.appleTouchIcon | default "apple-touch-icon.png" | absURL }}"
/>
<link
rel="icon"
href="{{ site.Params.assets.favicon | default "favicon.ico" |absURL }}"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="{{ site.Params.assets.favicon32 | default "favicon-32x32.png" | absURL }}"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="{{ site.Params.assets.favicon16 | default "favicon-16x16.png" | absURL }}"
/>
<link
rel="manifest"
href="{{ site.Params.assets.manifest | default "manifest.json" }}"
/>
<link
rel="mask-icon"
href="{{ site.Params.assets.safariPinnedTabIcon | default "safari-pinned-tab.svg" | absURL }}"
color="{{ site.Params.assets.safariPinnedTabColor | default "#030303" }}"
/>
<meta
name="msapplication-TileColor"
content="{{ site.Params.assets.msTileColor | default "#2b5797" }}"
/>
<meta
name="msapplication-TileImage"
content="{{ site.Params.assets.msTileIcon | default "mstile-150x150.png" }}"
/>
<meta
name="theme-color"
content="{{ site.Params.assets.themeColor | default "#030303" }}"
/>

View File

@ -0,0 +1,9 @@
{{- with resources.Get "css/style.css" }}
{{- if eq hugo.Environment "development" }}
<link rel="stylesheet" href="{{ .RelPermalink }}">
{{- else }}
{{- with . | minify | fingerprint }}
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
{{- end }}
{{- end }}
{{- end }}

7
layouts/robots.txt Normal file
View File

@ -0,0 +1,7 @@
User-agent: *
{{- if hugo.IsProduction | or (eq .Site.Params.env "production") }}
Allow: /
{{- else }}
Disallow: /
{{- end }}
Sitemap: {{ "sitemap.xml" | absURL }}

BIN
static/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

9
theme.toml Normal file
View File

@ -0,0 +1,9 @@
name = "Thunderball"
license = "MIT"
licenselink = "https://git.umbrella.haus/ae/thunderball/LICENSE"
homepage = "https://git.umbrella.haus/ae/thunderball"
[author]
name = "ae"
homepage = "https://golfed.xyz"