finish move to new theme for now

This commit is contained in:
Aaron Honeycutt 2024-11-22 13:01:25 -07:00
parent 6888f1129d
commit d6ceb3ae4c
7 changed files with 82 additions and 13 deletions

View file

@ -57,15 +57,16 @@ recent_more_text = "more »"
sections = [ sections = [
{ name = "posts", path = "/posts", is_external = false }, { name = "posts", path = "/posts", is_external = false },
{ name = "projects", path = "/projects", 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 = "about", path = "/about", is_external = false },
# { name = "github", path = "https://github.com/<your-username>", is_external = true }, # { name = "github", path = "https://github.com/<your-username>", is_external = true },
] ]
blog_section_path = "/posts" blog_section_path = "/posts"
links = [ links = [
{ name = "GitHub", icon = "github", url = "https://github.com/<your-username>" }, { name = "GitHub", icon = "github", url = "https://github.com/ahoneybun" },
{ name = "Twitter", icon = "twitter", url = "https://twitter.com/<your-username>" }, { name = "Mastodon", icon = "mastodon", url = "https://hachyderm.io/@ahoneybun" },
{ name = "Email", icon = "email", url = "mailto:<your-email-address>" }, { name = "Email", icon = "email", url = "mailto:aaronhoneycutt@proton.me>" },
] ]
force_theme = false # false | "light" | "dark" force_theme = false # false | "light" | "dark"

View file

@ -0,0 +1,8 @@
+++
title = "My Devices"
description = "My devices page."
template = "devices.html"
[extra]
lang = 'en'
+++

View file

@ -0,0 +1,7 @@
[[device]]
name = "Shepard"
desc = "Main Workstation at Home"
tags = [ "shepard", "workstation", "desktop" ]
links = [
{ name = "Status", url = "https://status.ahoneybun.net" }
]

View file

@ -1,8 +1,7 @@
[[project]] [[project]]
name = "NixOS configs that run my life!" name = "My Homelab"
desc = "my own nix configs" desc = "Homelab Status page"
tags = ["nix", "nixos" ] tags = [ "nixos", "homelab" ]
links = [ links = [
{ name = "Gitlab", url = "https://gitlab.com/ahoneybun/nix-configs/" } { name = "Status", url = "https://status.ahoneybun.net" }
] ]

7
public/devices/data.toml Normal file
View file

@ -0,0 +1,7 @@
[[device]]
name = "Shepard"
desc = "Main Workstation at Home"
tags = [ "shepard", "workstation", "desktop" ]
links = [
{ name = "Status", url = "https://status.ahoneybun.net" }
]

View file

@ -1,8 +1,7 @@
[[project]] [[project]]
name = "NixOS configs that run my life!" name = "My Homelab"
desc = "my own nix configs" desc = "Homelab Status page"
tags = ["nix", "nixos" ] tags = [ "nixos", "homelab" ]
links = [ links = [
{ name = "Gitlab", url = "https://gitlab.com/ahoneybun/nix-configs/" } { name = "Status", url = "https://status.ahoneybun.net" }
] ]

48
templates/devices.html Normal file
View file

@ -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 %}
<meta name="description" content="{{ section.description }}">
{% endblock desc %}
{% block content %}
{% include "_header.html" %}
<div id="wrapper">
<main>
{% set data = load_data(path="content" ~ section.path ~ "data.toml", format="toml") %}
{% for devices in data.device %}
<div class="proj">
<div class="meta">
<div class="name">{{ devices.name }}</div>
<div class="tags">
{% for tag in devices.tags %}
<div><span>#</span>{{ tag }}</div>
{% endfor %}
</div>
<div class="links">
{% for link in devices.links -%}
<a href="{{ link.url }}" target="_blank" rel='noreferrer noopener'>
<span>[</span>{{ link.name }}<span>]</span>
</a>
{% endfor %}
</div>
</div>
<div class="tags-narrow">
{% for tag in devices.tags %}
<div><span>#</span>{{ tag }}</div>
{% endfor %}
</div>
<div class="content">
<div class="desc">{{ devices.desc | trim | markdown | safe }}</div>
{% if devices.img %}
<img src="{{ devices.img }}" alt="{{ devices.name }}" />
{% endif %}
</div>
</div>
{% endfor %}
</main>
{% include "_footer.html" -%}
</div>
{% endblock content %}