From 83a395ec4b48df07e84227552f71f2fa74dcde88 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 25 Mar 2023 15:44:12 +0200 Subject: Update content for html --- gemfeed/2021-04-24-welcome-to-the-geminispace.html | 1 + ...5-gemtexter-one-bash-script-to-rule-it-all.html | 1 + ...2-08-27-gemtexter-1.1.0-lets-gemtext-again.html | 1 + ...03-25-gemtexter-2.0.0-lets-gemtext-again-2.html | 1 + ...DRAFT-gemtexter-1.1.0-lets-gemtext-again-2.html | 126 --------------------- gemfeed/atom.xml | 6 +- index.html | 2 +- uptime-stats.html | 2 +- 8 files changed, 11 insertions(+), 129 deletions(-) delete mode 100644 gemfeed/DRAFT-gemtexter-1.1.0-lets-gemtext-again-2.html diff --git a/gemfeed/2021-04-24-welcome-to-the-geminispace.html b/gemfeed/2021-04-24-welcome-to-the-geminispace.html index 84fc3ff6..182af56a 100644 --- a/gemfeed/2021-04-24-welcome-to-the-geminispace.html +++ b/gemfeed/2021-04-24-welcome-to-the-geminispace.html @@ -64,6 +64,7 @@ gemini://gemini.circumlunar.space
https://gemini.circumlunar.space

Other related posts are:

+2023-03-25 Gemtexter 2.0.0 - Let's Gemtext again^2
2022-08-27 Gemtexter 1.1.0 - Let's Gemtext again
2021-06-05 Gemtexter - One Bash script to rule it all
2021-04-24 Welcome to the Geminispace (You are currently reading this)
diff --git a/gemfeed/2021-06-05-gemtexter-one-bash-script-to-rule-it-all.html b/gemfeed/2021-06-05-gemtexter-one-bash-script-to-rule-it-all.html index cfb849fc..a6671234 100644 --- a/gemfeed/2021-06-05-gemtexter-one-bash-script-to-rule-it-all.html +++ b/gemfeed/2021-06-05-gemtexter-one-bash-script-to-rule-it-all.html @@ -131,6 +131,7 @@ assert::equals "$(generate::make_link md "$gemtext")" \

It was quite a lot of fun writing Gemtexter. It's a relatively small project, but given that I worked on that in my spare time once in a while, it kept me busy for several weeks.

I finally revamped my personal internet site and started to blog again. I wanted the result to be exactly how it is now: A slightly retro-inspired internet site built for fun with unconventional tools.

Other related posts are:

+2023-03-25 Gemtexter 2.0.0 - Let's Gemtext again^2
2022-08-27 Gemtexter 1.1.0 - Let's Gemtext again
2022-01-01 Bash Golf Part 2
2021-11-29 Bash Golf Part 1
diff --git a/gemfeed/2022-08-27-gemtexter-1.1.0-lets-gemtext-again.html b/gemfeed/2022-08-27-gemtexter-1.1.0-lets-gemtext-again.html index 595c1417..6d0f9f4d 100644 --- a/gemfeed/2022-08-27-gemtexter-1.1.0-lets-gemtext-again.html +++ b/gemfeed/2022-08-27-gemtexter-1.1.0-lets-gemtext-again.html @@ -68,6 +68,7 @@ check_dependencies () {

Additionally, there were a couple of bug fixes, refactorings and overall improvements in the documentation made.

Overall I think it's a pretty solid 1.1.0 release without anything groundbreaking (therefore no major version jump). But I am happy about it.

Other related posts are:

+2023-03-25 Gemtexter 2.0.0 - Let's Gemtext again^2
2022-08-27 Gemtexter 1.1.0 - Let's Gemtext again (You are currently reading this)
2021-06-05 Gemtexter - One Bash script to rule it all
2021-04-24 Welcome to the Geminispace
diff --git a/gemfeed/2023-03-25-gemtexter-2.0.0-lets-gemtext-again-2.html b/gemfeed/2023-03-25-gemtexter-2.0.0-lets-gemtext-again-2.html index 2aba47ce..060a4251 100644 --- a/gemfeed/2023-03-25-gemtexter-2.0.0-lets-gemtext-again-2.html +++ b/gemfeed/2023-03-25-gemtexter-2.0.0-lets-gemtext-again-2.html @@ -112,6 +112,7 @@ The remaining content of the Gemtext file...

More

Additionally, there were a couple of bug fixes, refactorings and overall improvements in the documentation made.

Other related posts are:

+2023-03-25 Gemtexter 2.0.0 - Let's Gemtext again^2 (You are currently reading this)
2022-08-27 Gemtexter 1.1.0 - Let's Gemtext again
2021-06-05 Gemtexter - One Bash script to rule it all
2021-04-24 Welcome to the Geminispace
diff --git a/gemfeed/DRAFT-gemtexter-1.1.0-lets-gemtext-again-2.html b/gemfeed/DRAFT-gemtexter-1.1.0-lets-gemtext-again-2.html deleted file mode 100644 index 2aba47ce..00000000 --- a/gemfeed/DRAFT-gemtexter-1.1.0-lets-gemtext-again-2.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - -Gemtexter 2.0.0 - Let's Gemtext again^2 - - - - - -

Gemtexter 2.0.0 - Let's Gemtext again^2

-
--=[ typewriters ]=-  1/98
-
-       .-------.
-      _|~~ ~~  |_       .-------.
-    =(_|_______|_)=    _|~~ ~~  |_
-      |:::::::::|    =(_|_______|_)
-      |:::::::[]|      |:::::::::|
-      |o=======.|      |:::::::[]|
- jgs  `"""""""""`      |o=======.|
-  mod. by Paul Buetow  `"""""""""`
-

-

I proudly announce that I've released Gemtexter version 2.0.0. What is Gemtexter? It's my minimalist static site generator written in GNU Bash.

-https://codeberg.org/snonux/gemtexter
-

This is a new major release, so it contains a breaking change (see "Meta cache made obsolete").

-

Let's list what's new!

-

Minimal template engine

-

Gemtexter now supports templating, enabling dynamically generated content to .gmi files before converting anything to any output format like HTML and Markdown.

-

A template file name must have the suffix gmi.tpl. A template must be put into the same directory as the Gemtext .gmi file to be generated. Gemtexter will generate a Gemtext file index.gmi from a given template index.gmi.tpl. A <<< and >>> encloses a multiline template. All lines starting with << will be evaluated as a single line of Bash code and the output will be written into the resulting Gemtext file.

-

For example, the template index.gmi.tpl:

-
-# Hello world
-
-<< echo "> This site was generated at $(date --iso-8601=seconds) by \`Gemtexter\`"
-
-Welcome to this capsule!
-
-<<<
-  for i in {1..10}; do
-    echo Multiline template line $i
-  done
->>>
-

-

... results into the following index.gmi after running ./gemtexter --generate (or ./gemtexter --template, which instructs to do only template processing and nothing else):

-
-# Hello world
-
-> This site was generated at 2023-03-15T19:07:59+02:00 by `Gemtexter`
-
-Welcome to this capsule!
-
-Multiline template line 1
-Multiline template line 2
-Multiline template line 3
-Multiline template line 4
-Multiline template line 5
-Multiline template line 6
-Multiline template line 7
-Multiline template line 8
-Multiline template line 9
-Multiline template line 10
-

-

Another thing you can do is insert an index with links to similar blog posts. E.g.:

-
-See more entries about DTail and Golang:
-
-<< template::inline::index dtail golang
-
-Blablabla...
-

-

... scans all other post entries with dtail and golang in the file name and generates a link list like this:

-
-See more entries about DTail and Golang:
-
-=> ./2022-10-30-installing-dtail-on-openbsd.gmi 2022-10-30 Installing DTail on OpenBSD
-=> ./2022-04-22-programming-golang.gmi 2022-04-22 The Golang Programming language
-=> ./2022-03-06-the-release-of-dtail-4.0.0.gmi 2022-03-06 The release of DTail 4.0.0
-=> ./2021-04-22-dtail-the-distributed-log-tail-program.gmi 2021-04-22 DTail - The distributed log tail program (You are currently reading this)
-
-Blablabla...
-

-

Added hooks

-

You can configure PRE_GENERATE_HOOK and POST_PUBLISH_HOOK to point to scripts to be executed before running --generate, or after running --publish. E.g. you could populate some of the content by an external script before letting Gemtexter do its thing or you could automatically deploy the site after running --publish.

-

The sample config file gemtexter.conf includes this as an example now; these scripts will only be executed when they actually exist:

-
-declare -xr PRE_GENERATE_HOOK=./pre_generate_hook.sh
-declare -xr POST_PUBLISH_HOOK=./post_publish_hook.sh
-

-

Use of safer Bash options

-

Gemtexter now does set -euf -o pipefile, which helps to eliminate bugs and to catch scripting errors sooner. Previous versions only set -e.

-

Meta cache made obsolete

-

Here is the breaking change to older versions of Gemtexter. The $BASE_CONTENT_DIR/meta directory was made obsolete. meta was used to store various information about all the blog post entries to make generating an Atom feed in Bash easier. Especially the publishing dates of each post were stored there. Instead, the publishing date is now encoded in the .gmi file. And if it is missing, Gemtexter will set it to the current date and time at first run.

-

An example blog post without any publishing date looks like this:

-
-% cat gemfeed/2023-02-26-title-here.gmi
-# Title here
-
-The remaining content of the Gemtext file...
-

-

Gemtexter will add a line starting with > Published at ... now. Any subsequent Atom feed generation will then use that date.

-
-% cat gemfeed/2023-02-26-title-here.gmi
-# Title here
-
-> Published at 2023-02-26T21:43:51+01:00
-
-The remaining content of the Gemtext file...
-

-

XMLLint support

-

Optionally, when the xmllint binary is installed, Gemtexter will perform a simple XML lint check against the Atom feed generated. This is a double-check of whether the Atom feed is a valid XML.

-

More

-

Additionally, there were a couple of bug fixes, refactorings and overall improvements in the documentation made.

-

Other related posts are:

-2022-08-27 Gemtexter 1.1.0 - Let's Gemtext again
-2021-06-05 Gemtexter - One Bash script to rule it all
-2021-04-24 Welcome to the Geminispace
-

E-Mail your comments to hi@paul.cyou :-)

-Back to the main site
- - - diff --git a/gemfeed/atom.xml b/gemfeed/atom.xml index 272eac50..ca6340ca 100644 --- a/gemfeed/atom.xml +++ b/gemfeed/atom.xml @@ -1,6 +1,6 @@ - 2023-03-25T15:42:46+02:00 + 2023-03-25T15:43:55+02:00 foo.zone feed To be in the .zone! @@ -122,6 +122,7 @@ The remaining content of the Gemtext file...

More

Additionally, there were a couple of bug fixes, refactorings and overall improvements in the documentation made.

Other related posts are:

+2023-03-25 Gemtexter 2.0.0 - Let's Gemtext again^2 (You are currently reading this)
2022-08-27 Gemtexter 1.1.0 - Let's Gemtext again
2021-06-05 Gemtexter - One Bash script to rule it all
2021-04-24 Welcome to the Geminispace
@@ -1050,6 +1051,7 @@ check_dependencies () {

Additionally, there were a couple of bug fixes, refactorings and overall improvements in the documentation made.

Overall I think it's a pretty solid 1.1.0 release without anything groundbreaking (therefore no major version jump). But I am happy about it.

Other related posts are:

+2023-03-25 Gemtexter 2.0.0 - Let's Gemtext again^2
2022-08-27 Gemtexter 1.1.0 - Let's Gemtext again (You are currently reading this)
2021-06-05 Gemtexter - One Bash script to rule it all
2021-04-24 Welcome to the Geminispace
@@ -3954,6 +3956,7 @@ assert::equals "$(generate::make_link md "$gemtext")" \

It was quite a lot of fun writing Gemtexter. It's a relatively small project, but given that I worked on that in my spare time once in a while, it kept me busy for several weeks.

I finally revamped my personal internet site and started to blog again. I wanted the result to be exactly how it is now: A slightly retro-inspired internet site built for fun with unconventional tools.

Other related posts are:

+2023-03-25 Gemtexter 2.0.0 - Let's Gemtext again^2
2022-08-27 Gemtexter 1.1.0 - Let's Gemtext again
2022-01-01 Bash Golf Part 2
2021-11-29 Bash Golf Part 1
@@ -4347,6 +4350,7 @@ fi https://gemini.circumlunar.space
https://gemini.circumlunar.space

Other related posts are:

+2023-03-25 Gemtexter 2.0.0 - Let's Gemtext again^2
2022-08-27 Gemtexter 1.1.0 - Let's Gemtext again
2021-06-05 Gemtexter - One Bash script to rule it all
2021-04-24 Welcome to the Geminispace (You are currently reading this)
diff --git a/index.html b/index.html index 0c0b7f9f..077bebf7 100644 --- a/index.html +++ b/index.html @@ -9,7 +9,7 @@

foo.zone

-

This site was generated at 2023-03-25T15:42:46+02:00 by Gemtexter

+

This site was generated at 2023-03-25T15:43:55+02:00 by Gemtexter

    |\---/|
    | ,_, |
diff --git a/uptime-stats.html b/uptime-stats.html
index 734ee7d5..b97a95a9 100644
--- a/uptime-stats.html
+++ b/uptime-stats.html
@@ -9,7 +9,7 @@
 
 
 

My machine uptime stats

-

This site was last updated at 2023-03-25T15:42:46+02:00

+

This site was last updated at 2023-03-25T15:43:55+02:00

The following stats were collected via uptimed on all of my personal computers over many years and the output was generated by guprecords, the global uptime records stats analyser.

Uptimed is an uptime record daemon keeping track of the highest uptimes a computer system ever had. It uses the system boot time to keep sessions apart from each other.

https://github.com/rpodgorny/uptimed
-- cgit v1.2.3