Move layouts and partials to their own folders, delete sigils

This commit is contained in:
gil 2024-06-12 11:02:17 -05:00
parent 322a5b4b52
commit acb35d5dac
27 changed files with 33 additions and 58 deletions

View file

@ -1,5 +1,5 @@
module.exports = { module.exports = {
siteName: "Gil's Nexus", siteName: "Gil's Nexus",
siteDescription: "", siteDescription: "",
authorName: "gil", authorName: "Gil",
}; };

View file

@ -6,7 +6,7 @@
<meta name="generator" content="{{ eleventy.generator }}"> <meta name="generator" content="{{ eleventy.generator }}">
<title>{% if title %}{{ title }} | {% endif %}{{ meta.siteName }}</title> <title>{% if title %}{{ title }} | {% endif %}{{ meta.siteName }}</title>
<link rel="stylesheet" href="/css/reset.css"> <link rel="stylesheet" href="/css/reset.css">
{% if layout != "landing.njk" %}<link rel="stylesheet" href="/css/global.css">{% else %}<link rel="stylesheet" href="/css/landing.css">{% endif %} <link rel="stylesheet" href="/css/global.css">
</head> </head>
<body> <body>
{{ content | safe }} {{ content | safe }}

View file

@ -10,7 +10,7 @@
</head> </head>
<body> <body>
<aside> <aside>
<img src="../img/landing-sigil.png" alt="A sigil-esque drawing" title="A sigil-esque drawing"> <img src="/img/landing-sigil.png" alt="A sigil-esque drawing" title="A sigil-esque drawing">
</aside> </aside>
<main><article>{{ content | safe }}</article><a href="{{ entry }}" class="entry-button">Enter</a></main> <main><article>{{ content | safe }}</article><a href="{{ entry }}" class="entry-button">Enter</a></main>
</body> </body>

View file

@ -1,11 +1,11 @@
--- ---
layout: base.njk layout: layouts/base.njk
--- ---
{% include "header.njk" %} {% include "partials/header.njk" %}
<main class="page"> <main class="page">
<header> <header>
<h1>{{ title }}</h1> <h1>{{ title }}</h1>
</header> </header>
{{ content | safe }} {{ content | safe }}
</main> </main>
{% include "footer.njk" %} {% include "partials/footer.njk" %}

View file

@ -1,4 +1,5 @@
<footer class="footer-main"> <footer class="footer-main">
Made with <a href="https://www.11ty.dev/">11ty</a>. Made with <a href="https://www.11ty.dev/">11ty</a>.
{% if page.date %}<i>Last updated on {{ page.date | postDate }}</i>{% endif %} {% if page.date %}<i>Last updated on {{ page.date | postDate }}</i>{% endif %}
LOCALHOST
</footer> </footer>

View file

@ -1,4 +1,4 @@
<header class="header_main"> <header class="header_main">
<a class="logo" href="/">{{ meta.siteName }}</a> <a class="logo" href="/main/">{{ meta.siteName }}</a>
<nav class="navbar">{{ collections.all | eleventyNavigation | eleventyNavigationToHtml | safe }}</nav> <nav class="navbar">{{ collections.all | eleventyNavigation | eleventyNavigationToHtml | safe }}</nav>
</header> </header>

View file

@ -1,32 +0,0 @@
---
layout: page.njk
date: Last Modified
eleventyNavigation:
key: About
---
<img class="gba-portrait" src="../img/gba-gil.png" alt="Me, a brown-haired, brown-eyed man with round glasses, smiling. The picture is filtered to mimic the Game Boy Camera and create a retro vibe." />
# About me
## The basics
<img src="../img/sigil-nga.png" class="sigil" alt="Sigil Nga" /> Name: Gil
<img src="../img/sigil-pa.png" class="sigil" alt="Sigil Pa" /> Pronouns: he, they
<img src="../img/sigil-ta.png" class="sigil" alt="Sigil Ta" /> Age: 25
<img src="../img/sigil-la.png" class="sigil" alt="Sigil La" /> Creating: Software & games
<img src="../img/sigil-sa.png" class="sigil" alt="Sigil Sa" /> Writing: Poems, fiction, essays
<img src="../img/sigil-da.png" class="sigil" alt="Sigil Da" /> Formerly: Electrical engineering student, student activist
<img src="../img/sigil-a.png" class="sigil" alt="Sigil A" /> Building: [Ograph Collective](../ograph)
## Social links
- [Hot takes](https://hol.ogra.ph/@gil) fresh off the ol' brain (Sharkey)
- [Hard-coded spells](https://ide.ogra.ph/gil) (code projects) to cast (Forgejo)
- It's [really me](https://aut.ogra.ph/aspe:keyoxide.org:7IW4QEA4DIBL3YORQH3HTEGDKM), I swear! (Keyoxide)
- Peruse the [scrapbook](https://pixelfed.social/kalanggam) (Pixelfed)
- Check out my [bookshelf](https://bookwyrm.social/user/kalanggam) (Bookwyrm)
## Support me
<a href="https://www.buymeacoffee.com/gilcaley" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-violet.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important; display: inline;"></a>

View file

@ -1,3 +0,0 @@
{
"eleventyExcludeFromCollections": true
}

View file

@ -106,8 +106,8 @@ article {
main.page, main.page,
article.page { article.page {
border: 32px solid transparent; border: 32px solid transparent;
border-image: url(../img/nine-patch.png) 32 round; border-image: url(/img/nine-patch.png) 32 round;
-webkit-border-image: url(../img/nine-patch.png) 32 round; -webkit-border-image: url(/img/nine-patch.png) 32 round;
background-color: rgb(255, 252, 240); background-color: rgb(255, 252, 240);
color: #802659; color: #802659;
box-shadow: 0 8px rgb(52, 51, 49); box-shadow: 0 8px rgb(52, 51, 49);

View file

@ -1,6 +1,6 @@
--- ---
title: Extra title: Extra
layout: page.njk layout: layouts/page.njk
date: Last Modified date: Last Modified
eleventyNavigation: eleventyNavigation:
key: Extra key: Extra

View file

@ -1,3 +0,0 @@
{
"eleventyExcludeFromCollections": true
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

View file

@ -1,3 +0,0 @@
{
"eleventyExcludeFromCollections": true
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 242 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 143 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 137 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 242 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 204 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 225 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 199 B

View file

@ -1,7 +1,7 @@
--- ---
layout: landing.njk layout: layouts/landing.njk
date: Last Modified date: Last Modified
entry: /about/ entry: /main/
--- ---
# Gil's Nexus # Gil's Nexus

13
src/main.md Normal file
View file

@ -0,0 +1,13 @@
---
date: Last Modified
eleventyNavigation:
key: Main
---
<img class="gba-portrait" src="/img/gba-gil.png" alt="Me, a brown-haired, brown-eyed man with round glasses, smiling. The picture is filtered to mimic the Game Boy Camera and create a retro vibe." />
# Home
## Support me
<a href="https://www.buymeacoffee.com/gilcaley" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-violet.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important; display: inline;"></a>

View file

@ -1,6 +1,6 @@
--- ---
title: Ograph Collective title: Ograph Collective
layout: page.njk layout: layouts/page.njk
date: Last Modified date: Last Modified
eleventyNavigation: eleventyNavigation:
key: Ograph key: Ograph

View file

@ -1,6 +1,6 @@
--- ---
title: Poetry title: Poetry
layout: page.njk layout: layouts/page.njk
permalink: /poetry/ permalink: /poetry/
override:tags: [] override:tags: []
eleventyNavigation: eleventyNavigation:

View file

@ -1,4 +1,3 @@
{ {
"layout": "page.njk",
"tags": "poems" "tags": "poems"
} }

View file

@ -43,8 +43,8 @@ article {
&.page { &.page {
border: 32px solid transparent; border: 32px solid transparent;
border-image: url(../img/nine-patch.png) 32 round; border-image: url(/img/nine-patch.png) 32 round;
-webkit-border-image: url(../img/nine-patch.png) 32 round; -webkit-border-image: url(/img/nine-patch.png) 32 round;
background-color: #{colors.$paper}; background-color: #{colors.$paper};
color: $fg; color: $fg;
box-shadow: 0 8px #{colors.$base-850}; box-shadow: 0 8px #{colors.$base-850};

3
src/src.json Normal file
View file

@ -0,0 +1,3 @@
{
"layout": "layouts/page.njk"
}