aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorfrosty <passedgoandgot200@disroot.org>2025-05-19 08:48:52 -0400
committerfrosty <passedgoandgot200@disroot.org>2025-05-19 08:48:52 -0400
commit24897b4ec55af3f21ce690783b9ca62c51f2ee67 (patch)
tree827232f612a72f267a1bebc08912acf7901b281e
initial commit
-rw-r--r--.gitignore2
-rw-r--r--LICENSE24
-rw-r--r--Makefile13
-rw-r--r--README.md5
-rw-r--r--archetypes/default.md5
-rw-r--r--content/_index.md0
-rw-r--r--content/about.md15
-rw-r--r--content/blog/2025-05-19-hello-world.md11
-rw-r--r--content/now.md21
-rw-r--r--hugo.toml30
-rw-r--r--layouts/partials/footer.html5
-rw-r--r--static/img/badge/cc0.pngbin0 -> 514 bytes
-rw-r--r--static/img/badge/gentoo.pngbin0 -> 1055 bytes
-rw-r--r--static/img/badge/vim.pngbin0 -> 321 bytes
-rw-r--r--themes/polaris/LICENSE24
-rw-r--r--themes/polaris/assets/css/style.css125
-rw-r--r--themes/polaris/layouts/_default/baseof.html23
-rw-r--r--themes/polaris/layouts/_default/home.html4
-rw-r--r--themes/polaris/layouts/_default/now.html8
-rw-r--r--themes/polaris/layouts/_default/single.html5
-rw-r--r--themes/polaris/layouts/partials/footer.html0
-rw-r--r--themes/polaris/layouts/partials/nav.html16
-rw-r--r--themes/polaris/layouts/partials/posts.html18
23 files changed, 354 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..c4b387a
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+.hugo_build.lock
+public/
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..efb9808
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,24 @@
+This is free and unencumbered software released into the public domain.
+
+Anyone is free to copy, modify, publish, use, compile, sell, or
+distribute this software, either in source code form or as a compiled
+binary, for any purpose, commercial or non-commercial, and by any
+means.
+
+In jurisdictions that recognize copyright laws, the author or authors
+of this software dedicate any and all copyright interest in the
+software to the public domain. We make this dedication for the benefit
+of the public at large and to the detriment of our heirs and
+successors. We intend this dedication to be an overt act of
+relinquishment in perpetuity of all present and future rights to this
+software under copyright law.
+
+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 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.
+
+For more information, please refer to <https://unlicense.org/>
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..cf6cf18
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,13 @@
+RSYNC_PATH ?= sudo -u nginx rsync
+REMOTE ?= user@192.168.0.100:/var/www/html
+
+all: build
+
+build:
+ hugo build --minify
+
+deploy: build
+ rsync --rsync-path="$(RSYNC_PATH)" -avP --delete public/ $(REMOTE)
+
+serve:
+ hugo serve --disableFastRender
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..f51e3fe
--- /dev/null
+++ b/README.md
@@ -0,0 +1,5 @@
+# www
+
+## License
+
+Unlicense, see README for more information.
diff --git a/archetypes/default.md b/archetypes/default.md
new file mode 100644
index 0000000..25b6752
--- /dev/null
+++ b/archetypes/default.md
@@ -0,0 +1,5 @@
++++
+date = '{{ .Date }}'
+draft = true
+title = '{{ replace .File.ContentBaseName "-" " " | title }}'
++++
diff --git a/content/_index.md b/content/_index.md
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/content/_index.md
diff --git a/content/about.md b/content/about.md
new file mode 100644
index 0000000..42d2b1b
--- /dev/null
+++ b/content/about.md
@@ -0,0 +1,15 @@
+---
+title: "About"
+---
+
+Hi there, I'm frosty. I'm primarily interested in meteorology, systems administration, and photography; I also like to experiment with minimalistic software setups and unconventional workflows.
+
+I don't consider myself a software developer, but I do write some code here and there. My favorite languages are C and Go, and I much prefer backend to frontend.
+
+## Website
+
+This website was created by hand in Vim and built with Hugo. It's quite simple, and I've made my own theme for myself. Sources of inspiration for the styling are: [sourcehut][srht], [suckless.org][suckless], and [ZNC's dark-clouds theme][dark-clouds].
+
+[srht]: https://sr.ht/
+[suckless]: https://suckless.org/
+[dark-clouds]: https://wiki.znc.in/File:Webadmin-settings-dark-clouds.png
diff --git a/content/blog/2025-05-19-hello-world.md b/content/blog/2025-05-19-hello-world.md
new file mode 100644
index 0000000..f80d9fe
--- /dev/null
+++ b/content/blog/2025-05-19-hello-world.md
@@ -0,0 +1,11 @@
+---
+title: "Hello, World!"
+date: "2025-05-19"
+---
+
+Hello and welcome! This is an introduction to my website. For the time being, you can read more [about me][about], or check up on what's up with me [right now][now].
+
+That's all I've got at the moment, see you soon!
+
+[about]: /about.html
+[now]: /now.html
diff --git a/content/now.md b/content/now.md
new file mode 100644
index 0000000..86f605e
--- /dev/null
+++ b/content/now.md
@@ -0,0 +1,21 @@
+---
+title: "Now"
+date: "2025-05-19"
+layout: "now"
+---
+
+- I've made it, I can call myself a high school graduate! A blog post about this is in the works.
+- My primary focus has been managing self-hosted servers (at home and on VPSes); both to gain experience and for the convenience and control of having my own infrastructure.
+- Recently, I got the itch to create a proper website for myself, after telling myself previously that I wasn't interesting enough to write about.
+- Learning Wayland client development has been fun - I'm doing it in C99. Currently, I'm creating a wallpaper daemon, and so far the hardest part of it is reading image data from files and handling the pixel data.
+
+## Music
+
+- The Dismemberment Plan (Change, Emergency & I, "!")
+- Jimmy Eat World (Clarity, Static Prevails, Bleed American)
+
+## TV
+
+- Severance
+ - My first time ever watching it, and it's been extremely captivating. I'm only on season 1 as well!
+- Aqua Teen Hunger Force
diff --git a/hugo.toml b/hugo.toml
new file mode 100644
index 0000000..18a45ca
--- /dev/null
+++ b/hugo.toml
@@ -0,0 +1,30 @@
+baseURL = "https://mending.trade/"
+languageCode = "en-us"
+title = "frostyfalls"
+theme = "polaris"
+uglyURLs = true
+minifyOutput = true
+
+[permalinks]
+blog = "/:2006/:01/:02/:title/"
+
+[params]
+subtext = "Lots of ideas, not many implementations."
+
+[params.author]
+name = "frosty"
+
+[[menu.left_nav]]
+name = "about"
+pageref = "/about.html"
+weight = 10
+
+[[menu.left_nav]]
+name = "now"
+pageref = "/now.html"
+weight = 20
+
+[[menu.right_nav]]
+name = "source"
+url = "https://github.com/frostyfalls/frostyfalls.github.io"
+weight = 10
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
new file mode 100644
index 0000000..63f969d
--- /dev/null
+++ b/layouts/partials/footer.html
@@ -0,0 +1,5 @@
+<hr class="footer-break">
+<p class="build-date">Last built {{ time.Now | time.Format "Jan 02 2006" }}.</p>
+<a href="https://creativecommons.org/publicdomain/zero/1.0/" rel="license"><img src="/img/badge/cc0.png" alt="CC0 1.0"></a>
+<a href="https://www.gentoo.org/"><img src="/img/badge/gentoo.png" alt="Gentoo"></a>
+<a href="https://www.vim.org/"><img src="/img/badge/vim.png" alt="Vim: the editor"></a>
diff --git a/static/img/badge/cc0.png b/static/img/badge/cc0.png
new file mode 100644
index 0000000..f27e87b
--- /dev/null
+++ b/static/img/badge/cc0.png
Binary files differ
diff --git a/static/img/badge/gentoo.png b/static/img/badge/gentoo.png
new file mode 100644
index 0000000..07ae247
--- /dev/null
+++ b/static/img/badge/gentoo.png
Binary files differ
diff --git a/static/img/badge/vim.png b/static/img/badge/vim.png
new file mode 100644
index 0000000..7be23f8
--- /dev/null
+++ b/static/img/badge/vim.png
Binary files differ
diff --git a/themes/polaris/LICENSE b/themes/polaris/LICENSE
new file mode 100644
index 0000000..efb9808
--- /dev/null
+++ b/themes/polaris/LICENSE
@@ -0,0 +1,24 @@
+This is free and unencumbered software released into the public domain.
+
+Anyone is free to copy, modify, publish, use, compile, sell, or
+distribute this software, either in source code form or as a compiled
+binary, for any purpose, commercial or non-commercial, and by any
+means.
+
+In jurisdictions that recognize copyright laws, the author or authors
+of this software dedicate any and all copyright interest in the
+software to the public domain. We make this dedication for the benefit
+of the public at large and to the detriment of our heirs and
+successors. We intend this dedication to be an overt act of
+relinquishment in perpetuity of all present and future rights to this
+software under copyright law.
+
+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 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.
+
+For more information, please refer to <https://unlicense.org/>
diff --git a/themes/polaris/assets/css/style.css b/themes/polaris/assets/css/style.css
new file mode 100644
index 0000000..f84c768
--- /dev/null
+++ b/themes/polaris/assets/css/style.css
@@ -0,0 +1,125 @@
+:root {
+ --body-background: #1a1a1a;
+ --body-foreground: #eeeeee;
+ --body-link: lightblue;
+ --nav-background: #3a3a3a;
+ --nav-foreground: #eeeeee;
+ --nav-active-background: #eeeeee;
+ --nav-active-foreground: #1a1a1a;
+ --hr-background: #8a8a8a;
+}
+
+body {
+ margin: 0;
+ background-color: var(--body-background);
+ color: var(--body-foreground);
+}
+
+a {
+ color: var(--body-link);
+ text-decoration: none;
+}
+
+a:hover {
+ text-decoration: underline;
+}
+
+.nav-over, main, footer {
+ max-width: 1000px;
+ margin: 0 auto;
+}
+
+@media only screen and (max-width: 1100px) {
+ .nav-over, main, footer {
+ max-width: 800px;
+ }
+}
+
+@media only screen and (max-width: 900px) {
+ .nav-over, main, footer {
+ max-width: 700px;
+ }
+}
+
+@media only screen and (max-width: 750px) {
+ .nav-over, main, footer {
+ max-width: none;
+ }
+
+ .nav-title, main, footer {
+ margin: 0 16px;
+ }
+}
+
+.nav-under {
+ background-color: var(--nav-background);
+ padding: 4px 0;
+}
+
+.nav-title h2 {
+ display: inline-block;
+ margin-top: 0;
+ margin-bottom: 0;
+ padding: 16px 0;
+}
+
+.nav-subtext {
+ margin-left: 16px;
+ color: #999999;
+ font-style: italic;
+}
+
+nav ul {
+ list-style-type: none;
+ margin: 0;
+ padding-left: 0;
+ overflow: hidden;
+}
+
+.nav-link {
+ background-color: var(--nav-background);
+ color: var(--nav-foreground);
+ display: block;
+ padding: 8px 12px;
+}
+
+.link-active {
+ background-color: var(--nav-active-background);
+ color: var(--nav-active-foreground);
+}
+
+.link-left {
+ float: left;
+}
+
+.link-right {
+ float: right;
+}
+
+@media only screen and (max-width: 400px) {
+ .link-left, .link-right {
+ float: none;
+ }
+
+ .nav-under {
+ display: none;
+ }
+}
+
+hr {
+ background-color: var(--hr-background);
+ height: 1px;
+ border: none;
+}
+
+footer {
+ text-align: center;
+}
+
+.footer-break {
+ width: 120px;
+}
+
+.build-date {
+ font-style: italic;
+}
diff --git a/themes/polaris/layouts/_default/baseof.html b/themes/polaris/layouts/_default/baseof.html
new file mode 100644
index 0000000..b6ccdac
--- /dev/null
+++ b/themes/polaris/layouts/_default/baseof.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <title>{{ .Site.Title }}</title>
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ {{ $style := resources.Get "css/style.css" | minify | fingerprint }}
+ <link rel="stylesheet" href="{{ $style.Permalink }}">
+ </head>
+ <body>
+ <nav>
+ {{ partial "nav.html" . }}
+ </nav>
+ <main>
+ {{ block "main" . }}
+ {{ .Content }}
+ {{ end }}
+ </main>
+ <footer>
+ {{ partial "footer.html" . }}
+ </footer>
+ </body>
+</html>
diff --git a/themes/polaris/layouts/_default/home.html b/themes/polaris/layouts/_default/home.html
new file mode 100644
index 0000000..6e46985
--- /dev/null
+++ b/themes/polaris/layouts/_default/home.html
@@ -0,0 +1,4 @@
+{{ define "main" }}
+ {{ .Content }}
+ {{ partial "posts.html" }}
+{{ end }}
diff --git a/themes/polaris/layouts/_default/now.html b/themes/polaris/layouts/_default/now.html
new file mode 100644
index 0000000..bb77eaf
--- /dev/null
+++ b/themes/polaris/layouts/_default/now.html
@@ -0,0 +1,8 @@
+{{ define "main" }}
+ <h1>{{ .Title }}</h1>
+ {{ .Content }}
+ <p>
+ Last updated {{ .Date | time.Format "Jan 02 2006" }}.
+ <a href="https://nownownow.com/about">What the heck is a “now page”?</a>
+ </p>
+{{ end }}
diff --git a/themes/polaris/layouts/_default/single.html b/themes/polaris/layouts/_default/single.html
new file mode 100644
index 0000000..d87f112
--- /dev/null
+++ b/themes/polaris/layouts/_default/single.html
@@ -0,0 +1,5 @@
+{{ define "main" }}
+ <h1>{{ .Title }}</h1>
+ <p><em>Written {{ .Date | time.Format "Jan 02 2006" }}.</em></p>
+ {{ .Content }}
+{{ end }}
diff --git a/themes/polaris/layouts/partials/footer.html b/themes/polaris/layouts/partials/footer.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/themes/polaris/layouts/partials/footer.html
diff --git a/themes/polaris/layouts/partials/nav.html b/themes/polaris/layouts/partials/nav.html
new file mode 100644
index 0000000..56d2fa9
--- /dev/null
+++ b/themes/polaris/layouts/partials/nav.html
@@ -0,0 +1,16 @@
+<div class="nav-over">
+ <div class="nav-title">
+ <h2><a href="/">{{ site.Title }}</a></h2>
+ {{ with site.Params.subtext }}<span class="nav-subtext">{{ . }}</span>{{ end }}
+ </div>
+ <ul>
+ {{ $currentPage := . }}
+ {{ range site.Menus.left_nav }}
+ <li><a class="nav-link link-left {{ if $currentPage.IsMenuCurrent "left_nav" . }} link-active {{ end }}" href=" {{ .URL }}">{{ .Name }}</a></li>
+ {{ end }}
+ {{ range site.Menus.right_nav }}
+ <li><a class="nav-link link-right" href=" {{ .URL }}">{{ .Name }}</a></li>
+ {{ end }}
+ </ul>
+</div>
+<div class="nav-under"></div>
diff --git a/themes/polaris/layouts/partials/posts.html b/themes/polaris/layouts/partials/posts.html
new file mode 100644
index 0000000..7fd87de
--- /dev/null
+++ b/themes/polaris/layouts/partials/posts.html
@@ -0,0 +1,18 @@
+{{ $pages := where site.RegularPages "Section" "blog" }}
+{{ $pagesLen := (len $pages) }}
+
+{{ if eq $pagesLen 0 }}
+<p>It sure is quiet around here.</p>
+{{ end }}
+
+{{ range $index, $element := $pages }}
+<article>
+ <header>
+ <h3><a href = "{{ .Permalink }}">{{ .Title }}</a></h3>
+ </header>
+ <p><em>{{ .Date | time.Format "Jan 02 2006" }}</em></p>
+</article>
+ {{ if ne (add $index 1) $pagesLen }}
+<hr>
+ {{ end }}
+{{ end }}