all repos — min @ 9fb026ca5532fa64b012f359b8955358a35902c8

A small but practical concatenative programming language.

Started implementing RSS feed.
h3rald h3rald@h3rald.com
Sat, 03 Feb 2024 22:05:25 +0100
commit

9fb026ca5532fa64b012f359b8955358a35902c8

parent

1a3e68f245c904b2c3049b75712687b6aff7106e

M site/contents/news/v0.43.0.mdsite/contents/news/v0.43.0.md

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

----- content-type: "post" title: "Version 0.43.0 released" -date: 2024-02-03 +date: 2024-02-04 ----- {@ _defs_.md || 0 @}
M site/rules.minsite/rules.min

@@ -144,13 +144,6 @@ when

"Processing contents..." notice! -; Get news -contents - (:content ((content 'content-type dhas?) (content /content-type "post" ==)) &&) -filter - (:a :b a /date b /date >) -sort :posts - contents ( (dict) expect -> :meta (

@@ -196,6 +189,13 @@ dup

"mmm" swap mustache %contents output-fwrite "Generating news page..." notice! +; Get news +contents + (:content ((content 'content-type dhas?) (content /content-type "post" ==)) &&) +filter + (:a :b a /date b /date >) +sort :posts + {} "news/index" %id "news.html" %path

@@ -206,5 +206,16 @@ "page" %content-type

posts %posts dup "news" swap mustache %contents output-fwrite + +{} + "rss" %id + "rss.xml" %path + ".xml" %ext + "min programming language" %title + "min language" %site + "rss" %content-type + posts %posts +dup +"rss" swap mustache %contents output-fwrite
M site/templates/_head.mustachesite/templates/_head.mustache

@@ -4,6 +4,7 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0">

<meta name="description" content="The min programming language is a small, concatenative, interpreted programming language that fits in a single 1MB file."> <link rel="icon" type="image/png" href="/images/logo.png" /> <title>{{site}} - {{title}}</title> + <link rel="alternate" type="application/rss+xml" title="{{title}}" href="https://min-lang.org/rss.xml" /> <link rel="stylesheet" href="/styles/pure.css"> <link rel="stylesheet" href="/styles/luxbar.css"> <link rel="preconnect" href="https://fonts.gstatic.com">
A site/templates/rss.mustache

@@ -0,0 +1,17 @@

+<?xml version="1.0" encoding="UTF-8" ?> +<rss version="2.0"> + <channel> + <title>min programming language</title> + <link>https://min-lang.org/rss.xml</link> + <description>The latest news about the min programming language</description> + {{#posts}} + <item> + <title>{{title}}</title> + <link>https://min-lang.org/{{id}}</link> + <description> + {{{contents}}} + </description> + </item> + {{/posts}} + </channel> +</rss>