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 }}