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:
parent
b0aaae309f
commit
2ed4a4f13b
9 changed files with 32 additions and 70 deletions
|
|
@ -11,6 +11,11 @@ module.exports = function (eleventyConfig) {
|
|||
api.getFilteredByGlob("src/about.md")
|
||||
);
|
||||
|
||||
// Collection: contact window content
|
||||
eleventyConfig.addCollection("contactContent", (api) =>
|
||||
api.getFilteredByGlob("src/contact.md")
|
||||
);
|
||||
|
||||
// Collection: projects, sorted alphabetically by title
|
||||
eleventyConfig.addCollection("projects", (api) =>
|
||||
api
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
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.
|
||||
|
|
@ -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"
|
||||
}
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<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.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=VT323&family=Share+Tech+Mono&display=swap" rel="stylesheet">
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{ title or "plain" }} — {{ site.handle }}</title>
|
||||
<title>lordnet.sh</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: 'Courier New', monospace;
|
||||
|
|
|
|||
|
|
@ -4,31 +4,7 @@ title: "about"
|
|||
permalink: /boring/about/
|
||||
---
|
||||
|
||||
# {{ site.author }}
|
||||
|
||||
{{ 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 }}`
|
||||
{{ collections.aboutContent[0].templateContent | safe }}
|
||||
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -4,21 +4,7 @@ title: "contact"
|
|||
permalink: /boring/contact/
|
||||
---
|
||||
|
||||
# Contact
|
||||
|
||||
## 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.
|
||||
{{ collections.contactContent[0].templateContent | safe }}
|
||||
|
||||
---
|
||||
|
||||
|
|
|
|||
19
src/contact.md
Normal file
19
src/contact.md
Normal 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>
|
||||
|
|
@ -178,24 +178,7 @@ permalink: /
|
|||
style="top:120px; left:240px; width:480px;">
|
||||
|
||||
<div class="window-content">
|
||||
<h2>Get in touch</h2>
|
||||
|
||||
<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>
|
||||
{{ collections.contactContent[0].templateContent | safe }}
|
||||
<p style="margin-top:14px"><a href="/boring/contact/">→ plaintext version</a></p>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue