From 6d2f00dfe6d3279d2239cf0135dcd017d1bae46b Mon Sep 17 00:00:00 2001 From: Silas Bartha Date: Thu, 15 Aug 2024 01:50:22 -0400 Subject: project page + pomd page --- CNAME | 1 - config.toml | 5 +++++ content/_index.md | 3 ++- content/projects/_index.md | 5 +++++ content/projects/pomd/index.md | 31 ++++++++++++++++++++++++++ content/projects/pomd/statusbar.png | Bin 0 -> 9883 bytes sass/style.scss | 6 ++++++ templates/project-page.html | 42 ++++++++++++++++++++++++++++++++++++ templates/projects.html | 19 ++++++++++++++++ 9 files changed, 110 insertions(+), 2 deletions(-) delete mode 100644 CNAME create mode 100644 content/projects/_index.md create mode 100644 content/projects/pomd/index.md create mode 100644 content/projects/pomd/statusbar.png create mode 100644 templates/project-page.html diff --git a/CNAME b/CNAME deleted file mode 100644 index 33864bf..0000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -exvacuum.dev \ No newline at end of file diff --git a/config.toml b/config.toml index 9c86351..f6740e7 100644 --- a/config.toml +++ b/config.toml @@ -7,6 +7,11 @@ compile_sass = true # Whether to build a search index to be used later on by a JavaScript library build_search_index = false +taxonomies = [ + { name = "categories", render = false }, + { name = "languages", render = false }, +] + [markdown] # Whether to do syntax highlighting # Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola diff --git a/content/_index.md b/content/_index.md index 0491e17..e8d7e25 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,10 +1,11 @@ +++ template = "index.html" +title = "hello" +++ # silas -- ~~projects~~ (coming soon, see [github](https://github.com/exvacuum) for now) +- [projects](@/projects/_index.md) - [blog](@/blog/_index.md) find me in other places diff --git a/content/projects/_index.md b/content/projects/_index.md new file mode 100644 index 0000000..8448ec5 --- /dev/null +++ b/content/projects/_index.md @@ -0,0 +1,5 @@ ++++ +title = "projects" +template = "projects.html" +page_template = "project-page.html" ++++ diff --git a/content/projects/pomd/index.md b/content/projects/pomd/index.md new file mode 100644 index 0000000..93ba0ff --- /dev/null +++ b/content/projects/pomd/index.md @@ -0,0 +1,31 @@ ++++ +title = "pomd" +description = "pomodoro timer daemon" +[taxonomies] +categories = ["utility"] +languages = ["rust"] +[extra] +finished = "november 2023" +github = ["exvacuum/pomd", "exvacuum/pomc"] +crates = ["pomd", "pomc"] ++++ + +this was a pretty simple rust project i did over the course of a couple days + +i had been wanting to experiment with d-bus on linux for a while and figured that writing a pomodoro daemon and client would be a good way to understand the basics of how d-bus interfaces work + +luckily i found the wonderful [zbus](https://crates.io/crates/zbus) crate which made everything for hooking up interface super simple + +i think the hardest thing about this project was trying to figure out how to accurately keep the time left in the timer + +as with many problems in rust the solution ended up being to find a [crate](https://crates.io/crates/pausable_clock) that implemented a "pausable clock" that worked similarly to a normal rust `std::time::Instant` + +it's pretty configurable from what i remember + +i used this program when i was using [dwm](https://dwm.suckless.org) and wanted a daemon to integrate into my statusbar + +![pomd segment in my dwm statusbar](statusbar.png) + +now i use KDE plasma which has a pretty good pomodoro applet available, maybe in the future i could make some kind of widget that communicates with the daemon + + diff --git a/content/projects/pomd/statusbar.png b/content/projects/pomd/statusbar.png new file mode 100644 index 0000000..6ca820a Binary files /dev/null and b/content/projects/pomd/statusbar.png differ diff --git a/sass/style.scss b/sass/style.scss index 65b7bae..cc2b935 100644 --- a/sass/style.scss +++ b/sass/style.scss @@ -8,3 +8,9 @@ body { a { color: everforest.$blue; } + +.langcolor { + &-rust { + color: #CE412B; + } +} diff --git a/templates/project-page.html b/templates/project-page.html new file mode 100644 index 0000000..3e8e2e4 --- /dev/null +++ b/templates/project-page.html @@ -0,0 +1,42 @@ +{% extends "base.html" %} + +{% block content %} + <- back to projects +

+ {{ page.title }} +

+

{{ page.description }}

+ +{% if page.taxonomies.categories %} +

category: {{ page.taxonomies.categories[0] }}

+{% endif %} +{% if page.extra.finished %} +

finished: {{ page.extra.finished }}

+{% endif %} +{% if page.taxonomies.languages %} +

+ languages: + {% for language in page.taxonomies.languages %} + {{ language }} + {% endfor %} +

+{% endif %} +{% if page.extra.github %} +

+ github: + {% for repo in page.extra.github %} + {{ repo }} + {% endfor %} +

+{% endif %} +{% if page.extra.crates %} +

+ crates.io: + {% for crate in page.extra.crates %} + {{ crate }} + {% endfor %} +

+{% endif %} +
+{{ page.content | safe }} +{% endblock content %} diff --git a/templates/projects.html b/templates/projects.html index e69de29..8b01177 100644 --- a/templates/projects.html +++ b/templates/projects.html @@ -0,0 +1,19 @@ +{% extends "base.html" %} + +{% block content %} + <- back to landing +

+ {{ section.title }} +

+{% set categories = get_taxonomy(kind="categories") %} + +{% for category in categories.items %} +{{category.name}} + +{% endfor %} + +{% endblock content %} -- cgit v1.2.3