Moved more of the logic around so now the plain and normal pages

actually share a markdown source.

Removed the site.json with some canned information, just going to inline
that data myself.
This commit is contained in:
Jake Holtham 2026-03-24 14:00:16 -04:00
parent b0aaae309f
commit 2ed4a4f13b
9 changed files with 32 additions and 70 deletions

View file

@ -11,6 +11,11 @@ module.exports = function (eleventyConfig) {
api.getFilteredByGlob("src/about.md") api.getFilteredByGlob("src/about.md")
); );
// Collection: contact window content
eleventyConfig.addCollection("contactContent", (api) =>
api.getFilteredByGlob("src/contact.md")
);
// Collection: projects, sorted alphabetically by title // Collection: projects, sorted alphabetically by title
eleventyConfig.addCollection("projects", (api) => eleventyConfig.addCollection("projects", (api) =>
api api

View file

@ -11,3 +11,5 @@ The design is a love-letter to retro machines of the 80s. It's a fun mix of an i
## Functionality ## Functionality
The window manager works and properly embeds markdown files as they're needed. Each "program" on the desktop is a display-able markdown file. They're really just glorified page sections with a frame. The window manager works and properly embeds markdown files as they're needed. Each "program" on the desktop is a display-able markdown file. They're really just glorified page sections with a frame.
The site has a "boring" mode, accessible via the "click if boring" button on the top right, and by the "plaintext version" option at the bottom of the windows.

View file

@ -1,9 +0,0 @@
{
"handle": "lordtet",
"author": "lordtet",
"tagline": "developer · tinkerer · human",
"bio": "I build things that are useful, interesting, or just plain fun. Fascinated by systems programming, the open web, and old hardware.",
"email": "you@example.com",
"github": "https://github.com/lordtet",
"pgp_fingerprint": "DEAD BEEF 1337 C0DE F00D CAFE BABE 0000 1234 5678 9ABC DEF0"
}

View file

@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ title or "~/home" }} — {{ site.handle }}</title> <title>guest@lordnet.sh</title>
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=VT323&family=Share+Tech+Mono&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=VT323&family=Share+Tech+Mono&display=swap" rel="stylesheet">

View file

@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ title or "plain" }} — {{ site.handle }}</title> <title>lordnet.sh</title>
<style> <style>
body { body {
font-family: 'Courier New', monospace; font-family: 'Courier New', monospace;

View file

@ -4,31 +4,7 @@ title: "about"
permalink: /boring/about/ permalink: /boring/about/
--- ---
# {{ site.author }} {{ collections.aboutContent[0].templateContent | safe }}
{{ site.bio }}
## Skills
- Systems & low-level programming
- Web development (front + back)
- Open source / UNIX tooling
- Whatever interesting problem is in front of me
## Setup
```
OS: Gentoo Linux
Shell: zsh
Editor: neovim
WM: dwm
```
## Contact
- **GitHub:** [{{ site.github }}]({{ site.github }})
- **Email:** [{{ site.email }}](mailto:{{ site.email }})
- **PGP:** `{{ site.pgp_fingerprint }}`
--- ---

View file

@ -4,21 +4,7 @@ title: "contact"
permalink: /boring/contact/ permalink: /boring/contact/
--- ---
# Contact {{ collections.contactContent[0].templateContent | safe }}
## Mail
[{{ site.email }}](mailto:{{ site.email }})
## GitHub
[{{ site.github }}]({{ site.github }})
## PGP
Fingerprint: `{{ site.pgp_fingerprint }}`
Key available on [keys.openpgp.org](https://keys.openpgp.org) or on request.
--- ---

19
src/contact.md Normal file
View file

@ -0,0 +1,19 @@
---
permalink: false
---
## Get in touch
### Mail
### GitHub
### PGP
<p style="color:var(--p-dim); font-size:13px; margin-bottom:6px;">Fingerprint:</p>
<pre></pre>
<p style="color:var(--p-dim); font-size:13px;">Key available on <a href="https://keys.openpgp.org" target="_blank" rel="noopener">keys.openpgp.org</a> or on request.</p>

View file

@ -178,24 +178,7 @@ permalink: /
style="top:120px; left:240px; width:480px;"> style="top:120px; left:240px; width:480px;">
<div class="window-content"> <div class="window-content">
<h2>Get in touch</h2> {{ collections.contactContent[0].templateContent | safe }}
<h3>Mail</h3>
<p><a href="mailto:{{ site.email }}">{{ site.email }}</a></p>
<h3>GitHub</h3>
<p><a href="{{ site.github }}" target="_blank" rel="noopener">{{ site.github }}</a></p>
<h3>PGP</h3>
<p style="color:var(--p-dim); font-size:13px; margin-bottom:6px;">
Fingerprint:
</p>
<pre>{{ site.pgp_fingerprint }}</pre>
<p style="color:var(--p-dim); font-size:13px;">
Key available on
<a href="https://keys.openpgp.org" target="_blank" rel="noopener">keys.openpgp.org</a>
or on request.
</p>
<p style="margin-top:14px"><a href="/boring/contact/">→ plaintext version</a></p> <p style="margin-top:14px"><a href="/boring/contact/">→ plaintext version</a></p>
</div> </div>