From d6ceb3ae4c45a93a11e8bd3aca29a8e58debda00 Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Fri, 22 Nov 2024 13:01:25 -0700 Subject: [PATCH] finish move to new theme for now --- config.toml | 7 +++--- content/devices/_index.md | 8 +++++++ content/devices/data.toml | 7 ++++++ content/projects/data.toml | 9 ++++--- public/devices/data.toml | 7 ++++++ public/projects/data.toml | 9 ++++--- templates/devices.html | 48 ++++++++++++++++++++++++++++++++++++++ 7 files changed, 82 insertions(+), 13 deletions(-) create mode 100644 content/devices/_index.md create mode 100644 content/devices/data.toml create mode 100644 public/devices/data.toml create mode 100644 templates/devices.html diff --git a/config.toml b/config.toml index 659bae9..66af083 100644 --- a/config.toml +++ b/config.toml @@ -57,15 +57,16 @@ recent_more_text = "more ยป" sections = [ { name = "posts", path = "/posts", is_external = false }, { name = "projects", path = "/projects", is_external = false }, + # { name = "devices", path = "/devices", is_external = false }, # { name = "about", path = "/about", is_external = false }, # { name = "github", path = "https://github.com/", is_external = true }, ] blog_section_path = "/posts" links = [ - { name = "GitHub", icon = "github", url = "https://github.com/" }, - { name = "Twitter", icon = "twitter", url = "https://twitter.com/" }, - { name = "Email", icon = "email", url = "mailto:" }, + { name = "GitHub", icon = "github", url = "https://github.com/ahoneybun" }, + { name = "Mastodon", icon = "mastodon", url = "https://hachyderm.io/@ahoneybun" }, + { name = "Email", icon = "email", url = "mailto:aaronhoneycutt@proton.me>" }, ] force_theme = false # false | "light" | "dark" diff --git a/content/devices/_index.md b/content/devices/_index.md new file mode 100644 index 0000000..e6fd868 --- /dev/null +++ b/content/devices/_index.md @@ -0,0 +1,8 @@ ++++ +title = "My Devices" +description = "My devices page." +template = "devices.html" + +[extra] +lang = 'en' ++++ diff --git a/content/devices/data.toml b/content/devices/data.toml new file mode 100644 index 0000000..dafe774 --- /dev/null +++ b/content/devices/data.toml @@ -0,0 +1,7 @@ +[[device]] + name = "Shepard" + desc = "Main Workstation at Home" + tags = [ "shepard", "workstation", "desktop" ] + links = [ + { name = "Status", url = "https://status.ahoneybun.net" } + ] diff --git a/content/projects/data.toml b/content/projects/data.toml index ec62d2b..d2832e9 100644 --- a/content/projects/data.toml +++ b/content/projects/data.toml @@ -1,8 +1,7 @@ [[project]] - name = "NixOS configs that run my life!" - desc = "my own nix configs" - tags = ["nix", "nixos" ] + name = "My Homelab" + desc = "Homelab Status page" + tags = [ "nixos", "homelab" ] links = [ - { name = "Gitlab", url = "https://gitlab.com/ahoneybun/nix-configs/" } + { name = "Status", url = "https://status.ahoneybun.net" } ] - diff --git a/public/devices/data.toml b/public/devices/data.toml new file mode 100644 index 0000000..dafe774 --- /dev/null +++ b/public/devices/data.toml @@ -0,0 +1,7 @@ +[[device]] + name = "Shepard" + desc = "Main Workstation at Home" + tags = [ "shepard", "workstation", "desktop" ] + links = [ + { name = "Status", url = "https://status.ahoneybun.net" } + ] diff --git a/public/projects/data.toml b/public/projects/data.toml index ec62d2b..d2832e9 100644 --- a/public/projects/data.toml +++ b/public/projects/data.toml @@ -1,8 +1,7 @@ [[project]] - name = "NixOS configs that run my life!" - desc = "my own nix configs" - tags = ["nix", "nixos" ] + name = "My Homelab" + desc = "Homelab Status page" + tags = [ "nixos", "homelab" ] links = [ - { name = "Gitlab", url = "https://gitlab.com/ahoneybun/nix-configs/" } + { name = "Status", url = "https://status.ahoneybun.net" } ] - diff --git a/templates/devices.html b/templates/devices.html new file mode 100644 index 0000000..6514453 --- /dev/null +++ b/templates/devices.html @@ -0,0 +1,48 @@ +{% extends "_base.html" %} + +{% block page %}devices{% endblock page%} +{% block lang %}{% if section.extra.lang %}{{ section.extra.lang }}{% else %}{{ section.lang }}{% endif %}{% endblock lang %} +{% block title %}{{ section.title }}{% endblock title %} +{% block desc %} + +{% endblock desc %} + +{% block content %} +{% include "_header.html" %} +
+
+ {% set data = load_data(path="content" ~ section.path ~ "data.toml", format="toml") %} + {% for devices in data.device %} +
+
+
{{ devices.name }}
+
+ {% for tag in devices.tags %} +
#{{ tag }}
+ {% endfor %} +
+ +
+
+ {% for tag in devices.tags %} +
#{{ tag }}
+ {% endfor %} +
+
+
{{ devices.desc | trim | markdown | safe }}
+ {% if devices.img %} + {{ devices.name }} + {% endif %} +
+
+ {% endfor %} +
+ {% include "_footer.html" -%} +
+{% endblock content %}