all repos — h3rald @ 39484a519144ca70e43a1a518e6c6bf782144d1b

The sources of https://h3rald.com

Added /articles aggregator page to be used instead of /archive.
h3rald h3rald@h3rald.com
Tue, 22 Aug 2023 21:05:24 +0000
commit

39484a519144ca70e43a1a518e6c6bf782144d1b

parent

ea85947435c7a651c95b9591f22ca9cbf6fe3719

3 files changed, 17 insertions(+), 2 deletions(-)

jump to
M rules.minrules.min

@@ -30,6 +30,20 @@ dup "page" swap mustache %contents

output-fwrite ) ^create-archives-page +( + {} + "articles/index" %id + "articles.html" %path + ".html" %ext + "Articles" %title + "page" %content-type + ARCHIVES dvalues (/code :a /code :b a b >) sort %archives + ARCHIVE-COLUMNS %archive-columns + dup "_archives" swap mustache %contents + dup "page" swap mustache %contents + output-fwrite +) ^create-articles-page + ; Create the Projects page ( {}

@@ -227,6 +241,7 @@

; Create aggregator pages create-projects-page create-archives-page +create-articles-page ; Generate home page generate-home
M templates/_header.mustachetemplates/_header.mustache

@@ -1,7 +1,7 @@

<header class="main-header box"> <h1><a href="/" title="H3RALD"><img src="/images/logo-light.svg" alt="H3RALD" class="logo" /></a></h1> <div class="navlinks"> - <a href="/archives" class="navbar-link">/articles</a> + <a href="/articles" class="navbar-link">/articles</a> &middot; <a href="/projects" class="navbar-link">/projects</a> &middot;
M templates/home.mustachetemplates/home.mustache

@@ -10,7 +10,7 @@ <div class="box content home-content">

<article> <h2>Welcome</h2> <section class="body-text"> - <p>Welcome to H3RALD.com. This site used to be a fairly active blog back in the early 2000s, but sadly I progressively lost interest in writing articles, perhaps because I didn't have anything new to write about that you couldn't find elsewhere. However, all the content is still here, so feel free to browse through the <a href="/archives">articles</a> section.</p> + <p>Welcome to H3RALD.com. This site used to be a fairly active blog back in the early 2000s, but sadly I progressively lost interest in writing articles, perhaps because I didn't have anything new to write about that you couldn't find elsewhere. However, all the content is still here, so feel free to browse through the <a href="/articles">articles</a> section.</p> <p>As I progressively neglected writing, I started creating more and more small programs and tools to perform common tasks, mostly using the <a href="https://nim-lang.org" target="_blank">Nim</a> programming language. They are all open source, they all have a dedicated project page here, and there's some pretty decent documentation for most of them. You can find them all in the <a href="/projects">projects</a> section.</p> <p>At any rate, thank you for stopping by!</p> <p>&mdash; Fabio</p>