summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilas Bartha <silas@soaos.dev>2025-05-03 03:53:42 -0400
committerSilas Bartha <silas@soaos.dev>2025-05-03 03:53:42 -0400
commit22592e96a75bd617fe6a9aae146b957695532e7c (patch)
tree5fb31095c224e056471c9f8bf7dd7b46308ffdbd
parentecec6d23de95423b675bc2960ccd4c3950bb4f5f (diff)
Added piss daemon page
-rw-r--r--config.toml33
-rw-r--r--public/projects/piss_daemon/index.html39
-rw-r--r--public/projects/piss_daemon/statusbar.pngbin0 -> 4546 bytes
-rw-r--r--templates/base.html31
-rw-r--r--templates/blog-page.html24
-rw-r--r--templates/blog.html14
-rw-r--r--templates/index.html13
-rw-r--r--templates/project-page.html65
-rw-r--r--templates/projects.html29
-rw-r--r--templates/shortcodes/coverimage.html3
-rw-r--r--templates/snippet-page.html9
-rw-r--r--templates/snippets.html14
12 files changed, 39 insertions, 235 deletions
diff --git a/config.toml b/config.toml
deleted file mode 100644
index dec8c63..0000000
--- a/config.toml
+++ /dev/null
@@ -1,33 +0,0 @@
-# The URL the site will be built for
-base_url = "https://soaos.dev"
-
-# Whether to automatically compile all Sass files in the sass directory
-compile_sass = true
-
-# Whether to build a search index to be used later on by a JavaScript library
-build_search_index = false
-
-generate_feeds = true
-feed_filenames = ["atom.xml", "rss.xml"]
-
-author = "Silas Bartha"
-
-taxonomies = [
- { name = "categories", render = false },
- { name = "languages", render = false },
- { name = "projects", render = false },
-]
-
-[markdown]
-# Whether to do syntax highlighting
-# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
-highlight_code = true
-highlight_theme = "Everforest Dark"
-extra_syntaxes_and_themes = ["highlight_themes", "syntaxes"]
-
-# Whether external links are to be opened in a new tab
-# If this is true, a `rel="noopener"` will always automatically be added for security reasons
-external_links_target_blank = true
-
-[extra]
-# Put all your custom variables here
diff --git a/public/projects/piss_daemon/index.html b/public/projects/piss_daemon/index.html
new file mode 100644
index 0000000..47f6d63
--- /dev/null
+++ b/public/projects/piss_daemon/index.html
@@ -0,0 +1,39 @@
+<html lang="en">
+
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Piss Daemon - soaos</title>
+</head>
+
+<body>
+ <a href="/">Go Home</a>
+ <a href="..">Go Back</a>
+ <h1>Piss Daemon</h1>
+ <p>This is a D-Bus daemon (<code>pissd</code>) and client (<code>piss-level</code>) that monitor the international
+ space station's urine tank level.</p>
+ <p>I have it integrated into my status bar (X version):</p>
+ <img src="statusbar.png"
+ alt="A screenshot of an X11 statusbar showing the piss daemon piss level next to a toilet icon.">
+ <pre>
+ #...
+
+ function piss {
+ PISS_LEVEL="$(piss-level)";
+ if [ -n "$PISS_LEVEL" ]; then
+ echo "  ${PISS_LEVEL}%";
+ fi;
+ }
+
+ #...
+
+ while true; do
+ xsetroot -name "$(piss)$(batt)$(datetime)";
+ sleep 1;
+ done;
+
+ </pre>
+ <p>I made this pretty much entirely so that I could call a program "piss daemon".</p>
+</body>
+
+</html> \ No newline at end of file
diff --git a/public/projects/piss_daemon/statusbar.png b/public/projects/piss_daemon/statusbar.png
new file mode 100644
index 0000000..b98e021
--- /dev/null
+++ b/public/projects/piss_daemon/statusbar.png
Binary files differ
diff --git a/templates/base.html b/templates/base.html
deleted file mode 100644
index 793d539..0000000
--- a/templates/base.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="utf-8"/>
- <link rel="stylesheet" href="/style.css"/>
- <title>soaos</title>
- <meta property="og:url" content="{{config.base_url | safe}}/{{current_path | safe}}" />
- {% block meta_content %}
- <meta property="og:title" content="soaos" />
- {% endblock meta_content %}
- {% block rss %}
- <link rel="alternate" type="application/rss+xml" title="RSS" href="{{ get_url(path="rss.xml", trailing_slash=false) }}">
- {% endblock %}
- </head>
- <body>
- <section class="section">
- <div class="container">
- {% block content %}
- <a href="{{ get_url(path='@/_index.md') }}"> <- back to landing</a>
- {{ section.content | safe }}
- {% endblock %}
- </div>
- </section>
- </body>
- <footer>
- <hr/>
- <a href="https://evilr.ing/soaos/previous"><</a>
- <a href="https://evilr.ing">EVILRING</a>
- <a href="https://evilr.ing/soaos/next">></a>
- </footer>
-</html>
diff --git a/templates/blog-page.html b/templates/blog-page.html
deleted file mode 100644
index 00eecf8..0000000
--- a/templates/blog-page.html
+++ /dev/null
@@ -1,24 +0,0 @@
-{% extends "base.html" %}
-
-{% block meta_content %}
- {% if page.title %}
- <meta property="og:title" content="soaos" />
- <meta name="description" content="{{ page.title | safe }}" />
- <meta property="og:description" content="{{ page.title | safe }}" />
- {% else %}
- <meta property="og:title" content="soaos" />
- {% endif %}
- {% if page.extra.coverimage %}
- <meta property="og:image" content="{{ current_url | safe }}/{{ page.extra.coverimage | safe }}"/>
- <meta name="twitter:card" content="summary_large_image"/>
- {% endif %}
-{% endblock meta_content %}
-
-{% block content %}
-<a href="{{ get_url(path='@/blog/_index.md') }}"> <- back to posts</a>
-<h1 class="title">
- {{ page.title }}
-</h1>
- <p class="subtitle"><strong>{{ page.date }} - reading time: {{ page.reading_time }} minutes</strong></p>
-{{ page.content | safe }}
-{% endblock content %}
diff --git a/templates/blog.html b/templates/blog.html
deleted file mode 100644
index 56365fc..0000000
--- a/templates/blog.html
+++ /dev/null
@@ -1,14 +0,0 @@
-{% extends "base.html" %}
-
-{% block content %}
-<a href="{{ get_url(path='@/_index.md') }}"> <- back to landing</a>
-<h1 class="title">
- {{ section.title }}
-</h1>
-
-<ul>
- {% for page in section.pages %}
- <li><a href="{{ page.permalink | safe }}">{{ page.title }}</a> ({{page.date}})</li>
- {% endfor %}
-</ul>
-{% endblock content %}
diff --git a/templates/index.html b/templates/index.html
deleted file mode 100644
index 98cc148..0000000
--- a/templates/index.html
+++ /dev/null
@@ -1,13 +0,0 @@
-{% extends "base.html" %}
-
-{% block content %}
-{{ section.content | safe }}
-<br/>
-recent posts
-{% set section = get_section(path="blog/_index.md") %}
-<ul>
- {% for page in section.pages | slice(end=5) %}
- <li><a href="{{page.permalink}}">{{page.title}}</a> ({{page.date}})</li>
- {% endfor %}
-</ul>
-{% endblock content %}
diff --git a/templates/project-page.html b/templates/project-page.html
deleted file mode 100644
index c097818..0000000
--- a/templates/project-page.html
+++ /dev/null
@@ -1,65 +0,0 @@
-{% extends "base.html" %}
-
-{% block content %}
-<a href="{{ get_url(path='@/projects/_index.md') }}"> <- back to projects</a>
-<h1 class="title">
- {{ page.title }}
- {% if page.extra.wip %}
- (<span class="wip-indicator">wip</span>)
- {% endif %}
-</h1>
-{% if page.description %}
-<p><strong>{{ page.description }}</strong></p>
-{% endif %}
-
-{% if page.taxonomies.categories %}
-<p>category: {{ page.taxonomies.categories[0] }}</p>
-{% endif %}
-{% if page.extra.finished %}
-<p>finished: {{ page.extra.finished }}</p>
-{% endif %}
-{% if page.taxonomies.languages %}
-<p>
- languages:
- {% for language in page.taxonomies.languages %}
- <span class="langcolor-{{ language }}">{{ language }}</span>
- {% endfor %}
-</p>
-{% endif %}
-{% if page.extra.git %}
-<p>
- git:
- {% for repo in page.extra.git %}
- <a href="https://git.soaos.dev/{{ repo }}" target="_blank">{{ repo }}</a>
- {% endfor %}
-</p>
-{% endif %}
-{% if page.extra.github %}
-<p>
- github:
- {% for repo in page.extra.github %}
- <a href="https://github.com/{{ repo }}" target="_blank">{{ repo }}</a>
- {% endfor %}
-</p>
-{% endif %}
-{% if page.extra.crates %}
-<p>
- crates.io:
- {% for crate in page.extra.crates %}
- <a href="https://crates.io/crates/{{ crate }}" target="_blank">{{ crate }}</a>
- {% endfor %}
-</p>
-{% endif %}
-<br/>
-{{ page.content | safe }}
-{% set project = get_taxonomy_term(kind="projects", term=page.title, required=false) %}
-{% if project and project.page_count > 0 %}
-<br/>
-<p><strong>related blog posts:</strong></p>
-<ul>
- {% for page in project.pages %}
- <li><a href="{{ page.permalink }}">{{ page.title }}</a> ({{ page.date }})</li>
- {% endfor %}
-</ul>
-{% endif %}
-{% endblock content %}
diff --git a/templates/projects.html b/templates/projects.html
deleted file mode 100644
index 7b2df74..0000000
--- a/templates/projects.html
+++ /dev/null
@@ -1,29 +0,0 @@
-{% extends "base.html" %}
-
-{% block content %}
-<a href="{{ get_url(path='@/_index.md') }}"> <- back to landing</a>
-<h1 class="title">
- {{ section.title }}
-</h1>
-{% set categories = get_taxonomy(kind="categories") %}
-
-{% for category in categories.items %}
-<b>{{category.name}}</b>
-<ul>
- {% for page in category.pages %}
- <li>
- <a href="{{ page.permalink | safe }}">
- {{ page.title }}{% if page.description %}: {{ page.description }}{% endif %}
- </a>
- {% if page.extra.wip %}
- (<span class="wip-indicator">wip</span>)
- {% endif %}
- {% if page.extra.very_cool %}
- (<span class="rainbow_text_animated">VERY COOL</span>)
- {% endif %}
- </li>
- {% endfor %}
-</ul>
-{% endfor %}
-
-{% endblock content %}
diff --git a/templates/shortcodes/coverimage.html b/templates/shortcodes/coverimage.html
deleted file mode 100644
index 4349b69..0000000
--- a/templates/shortcodes/coverimage.html
+++ /dev/null
@@ -1,3 +0,0 @@
-<div class="coverimage">
- <img src="{{url | safe}}"/>
-</div>
diff --git a/templates/snippet-page.html b/templates/snippet-page.html
deleted file mode 100644
index f8b5687..0000000
--- a/templates/snippet-page.html
+++ /dev/null
@@ -1,9 +0,0 @@
-{% extends "base.html" %}
-
-{% block content %}
-<a href="{{ get_url(path='@/snippets/_index.md') }}"> <- back to snippets</a>
-<h1 class="title">
- {{ page.title }}
-</h1>
-{{ page.content | safe }}
-{% endblock content %}
diff --git a/templates/snippets.html b/templates/snippets.html
deleted file mode 100644
index 2f7137f..0000000
--- a/templates/snippets.html
+++ /dev/null
@@ -1,14 +0,0 @@
-{% extends "base.html" %}
-
-{% block content %}
-<a href="{{ get_url(path='@/_index.md') }}"> <- back to landing</a>
-<h1 class="title">
- {{ section.title }}
-</h1>
-
-{% for page in section.pages %}
-<hr/>
-<h2><a href="{{ page.permalink | safe }}">{{ page.title }}</a> ({{page.date}})</h2>
-{{ page.content | safe }}
-{% endfor %}
-{% endblock content %}