all but posts omg

This commit is contained in:
2026-02-19 12:07:10 -08:00
parent 1913d9c46e
commit 96049f57ee
40 changed files with 1030 additions and 192 deletions

View File

@ -23,26 +23,24 @@
<script src="https://kit.fontawesome.com/884dded219.js" crossorigin="anonymous"></script>
{# Styles #}
<link rel="stylesheet" href="/assets/css/main.css">
<link rel="stylesheet" href="/assets/css/nav.css">
<link rel="stylesheet" href="/assets/css/highlighting.css">
<link rel="stylesheet" href="/assets/css/print.css">
<link rel="stylesheet" href="/assets/css/postlist.css">
<link rel="stylesheet" href="/assets/css/post.css">
<style>{% include "css/main.css" %}</style>
<style>{% include "css/nav.css" %}</style>
<style>{% include "css/print.css" %}</style>
{# Heading anchors #}
<script type="module">{% include "node_modules/@zachleat/heading-anchors/heading-anchors.js" %}</script>
<style>{% getBundle "css" %}</style>
<script type="module">{% getBundle "js" %}</script>
</head>
<body>
{% include "header.njk" %}
<main id="main">
<heading-anchors>
{{ content | safe }}
{{ content | safe }}
<hr>
</heading-anchors>
<hr>
</main>
{% include "footer.njk" %}
<!-- This page `{{ page.url }}` was built on {% currentBuildDate %} -->
<body>

View File

@ -0,0 +1,8 @@
---
layout: base.njk
---
{% css %}{% include "css/lists.css" %}{% endcss %}
<h1>{{ title }}</h1>
{{ content | safe }}

View File

@ -1,6 +1,10 @@
---
layout: base.njk
---
<h1>{{ title }}</h1>
{% js %}{% include "node_modules/@zachleat/heading-anchors/heading-anchors.js" %}{% endjs %}
{{ content | safe }}
<heading-anchors content="<i class='fa-solid fa-anchor'></i>">
<h1>{{ title }}</h1>
{{ content | safe }}
</heading-anchors>

View File

@ -1,31 +1,37 @@
---
layout: base.njk
---
<article>
<h1>{{ title }}</h1>
{% css %}{% include "css/post.css" %}{% endcss %}
{% css %}{% include "css/highlighting.css" %}{% endcss %}
{% js %}{% include "node_modules/@zachleat/heading-anchors/heading-anchors.js" %}{% endjs %}
<div class="post-metadata">
<p>
posted on
<time datetime="{{ page.date | htmlDateString }}">{{ page.date | readableDate }}</time>
by {{ metadata.author }}
</p>
{% set relevantTags = tags | removeBasicTags %}
{% if relevantTags.length %}
<ul class="post-tags">
{% for tag in relevantTags %}
<li>
{% set tagUrl %}/tag/{{ tag | slugify }}/{% endset %}
<a href="{{ tagUrl }}">{{ tag }}</a>
</li>
{% endfor %}
</ul>
<heading-anchors content="<i class='fa-solid fa-anchor'></i>">
<article>
<h1>{{ title }}</h1>
<div class="post-metadata">
<p>
posted on
<time datetime="{{ page.date | htmlDateString }}">{{ page.date | readableDate }}</time>
by {{ metadata.author }}
</p>
{% set relevantTags = tags | removeBasicTags %}
{% if relevantTags.length %}
<ul class="post-tags">
{% for tag in relevantTags %}
<li>
{% set tagUrl %}/tags/{{ tag | slugify }}/{% endset %}
<a href="{{ tagUrl }}">{{ tag }}</a>
</li>
{% endfor %}
</ul>
{% endif %}
</div>
{% if image %}
<img src="/img/{{ image.src }}" alt="{{ image.alt }}">
{% endif %}
</div>
{% if image %}
<img src="/img/{{ image.src }}" alt="{{ image.alt }}">
{% endif %}
{{ content | safe }}
</article>
{{ content | safe }}
</article>
</heading-anchors>

View File

@ -0,0 +1,6 @@
---
layout: base.njk
---
{% css %}{% include "css/resume.css" %}{% endcss %}
{{ content | safe }}

View File

@ -4,14 +4,14 @@
{% if olderHref %}
<li class="older">
<a href="{{ olderHref }}">
<i class="fa-solid fa-hand-point-left"></i> older
<i class="fa-solid fa-hand-point-left" aria-hidden="true"></i> older
</a>
</li>
{% endif %}
{% if newerHref %}
<li class="newer">
<a href="{{ newerHref }}">
newer <i class="fa-solid fa-hand-point-right"></i>
newer <i class="fa-solid fa-hand-point-right" aria-hidden="true"></i>
</a>
</li>
{% endif %}

25
_includes/webring.njk Normal file
View File

@ -0,0 +1,25 @@
<nav class="webring" aria-labelledby="{{ id }}">
<h3 id="{{ id }}">{{ name }}</h3>
<p>This site is a member of the <a rel="external" target="_blank" href="{{ url }}">{{ name }}</a>. Navigate through the webring:</p>
<ul>
<li class="prev">
<a rel="external" referrerpolicy="strict-origin" href="{{ prev }}" target="_blank" title="{{ name }} - previous website">
<i class="fa-solid fa-hand-point-left" aria-hidden="true"></i>
prev
</a>
</li>
<li class="rand">
<a rel="external" referrerpolicy="strict-origin" href="{{ rand }}" target="_blank" title="{{ name }} - random website">
<i class="fa-solid fa-dice" aria-hidden="true"></i>
rand
<i class="fa-solid fa-dice" aria-hidden="true"></i>
</a>
</li>
<li class="next">
<a rel="external" referrerpolicy="strict-origin" href="{{ next }}" target="_blank" title="{{ name }} - next website">
next
<i class="fa-solid fa-hand-point-right" aria-hidden="true"></i>
</a>
</li>
</ul>
</nav>