From c9daa640faa75d60fadbd68954a435920028aec5 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 30 Apr 2021 19:37:26 +0100 Subject: atom feed passes w3c check --- buetow.org.sh | 23 +++++++++++----------- content/gemtext/gemfeed/atom.xml | 12 +++++------ content/html/gemfeed/atom.xml | 12 +++++------ ...-22-dtail-the-distributed-log-tail-program.meta | 8 ++++---- .../2021-04-24-welcome-to-the-geminispace.meta | 8 ++++---- 5 files changed, 31 insertions(+), 32 deletions(-) diff --git a/buetow.org.sh b/buetow.org.sh index 5bc2cea6..dc4ade49 100755 --- a/buetow.org.sh +++ b/buetow.org.sh @@ -35,23 +35,21 @@ atom::meta () { if [ ! -f $meta_file ]; then # Extract first heading as post title. - local title=$(sed -n '/^# / { s/# //; p; q; }' $gmi_file_path) + local title=$(sed -n '/^# / { s/# //; p; q; }' $gmi_file_path | tr '"' "'") # Extract first paragraph from Gemtext - local summary=$(sed -n '/^[A-Z]/ { p; q; }' $gmi_file_path) + local summary=$(sed -n '/^[A-Z]/ { p; q; }' $gmi_file_path | tr '"' "'") - echo 'local meta_post_is_new=1' cat < $atom_file.tmp + $now $DOMAIN feed $SUBTITLE - + gemini://$DOMAIN/ - $now ATOMHEADER while read gmi_file; do # Load cached meta information about the post. source <(atom::meta $now $gemfeed_dir/$gmi_file) - test $meta_post_is_new -eq 1 && changed=1 cat <> $atom_file.tmp @@ -96,7 +92,10 @@ ATOMENTRY ATOMFOOTER - if [ $changed -eq 1 ]; then + # Delete the 3rd line of the atom feeds (global feed update timestamp) + diff -u <(sed 3d $atom_file.tmp) <(sed 3d $atom_file) + + if [ $? -ne 0 ]; then echo "Feed got something new!" mv $atom_file.tmp $atom_file git add $atom_file diff --git a/content/gemtext/gemfeed/atom.xml b/content/gemtext/gemfeed/atom.xml index a0f529cc..5b22caa5 100644 --- a/content/gemtext/gemfeed/atom.xml +++ b/content/gemtext/gemfeed/atom.xml @@ -1,17 +1,17 @@ + 2021-04-30T19:36:42+01:00 buetow.org feed Having fun with computers! - + gemini://buetow.org/ - 2021-04-30T10:04:15+01:00 Welcome to the Geminispace gemini://buetow.org/gemfeed/2021-04-24-welcome-to-the-geminispace.gmi - 2021-04-30T10:04:15+01:00 - + 2021-04-24T19:28:41+01:00 + Have you reached this article already via Gemini? You need a special client for that, web browsers such as Firefox, Chrome, Safari etc. don't support the Gemini protocol. The Gemini address of this site (or the address of this capsule as people say in Geminispace) is: Paul Buetow comments@mx.buetow.org @@ -21,8 +21,8 @@ DTail - The distributed log tail program gemini://buetow.org/gemfeed/2021-04-22-dtail-the-distributed-log-tail-program.gmi - 2021-04-30T10:04:15+01:00 - This article first appeared at the Mimecast Engineering Blog but I made it available here in my personal Gemini capsule too.... + 2021-04-22T19:28:41+01:00 + This article first appeared at the Mimecast Engineering Blog but I made it available here in my personal Gemini capsule too. Paul Buetow comments@mx.buetow.org diff --git a/content/html/gemfeed/atom.xml b/content/html/gemfeed/atom.xml index 41a0313b..eabb6001 100644 --- a/content/html/gemfeed/atom.xml +++ b/content/html/gemfeed/atom.xml @@ -1,17 +1,17 @@ + 2021-04-30T19:36:42+01:00 buetow.org feed Having fun with computers! - + http://buetow.org/ - 2021-04-30T10:04:15+01:00 Welcome to the Geminispace http://buetow.org/gemfeed/2021-04-24-welcome-to-the-geminispace.html - 2021-04-30T10:04:15+01:00 - + 2021-04-24T19:28:41+01:00 + Have you reached this article already via Gemini? You need a special client for that, web browsers such as Firefox, Chrome, Safari etc. don't support the Gemini protocol. The Gemini address of this site (or the address of this capsule as people say in Geminispace) is: Paul Buetow comments@mx.buetow.org @@ -21,8 +21,8 @@ DTail - The distributed log tail program http://buetow.org/gemfeed/2021-04-22-dtail-the-distributed-log-tail-program.html - 2021-04-30T10:04:15+01:00 - This article first appeared at the Mimecast Engineering Blog but I made it available here in my personal Gemini capsule too.... + 2021-04-22T19:28:41+01:00 + This article first appeared at the Mimecast Engineering Blog but I made it available here in my personal Gemini capsule too. Paul Buetow comments@mx.buetow.org diff --git a/content/meta/gemfeed/2021-04-22-dtail-the-distributed-log-tail-program.meta b/content/meta/gemfeed/2021-04-22-dtail-the-distributed-log-tail-program.meta index dd957e30..585998d3 100644 --- a/content/meta/gemfeed/2021-04-22-dtail-the-distributed-log-tail-program.meta +++ b/content/meta/gemfeed/2021-04-22-dtail-the-distributed-log-tail-program.meta @@ -1,5 +1,5 @@ -local meta_date=2021-04-30T10:04:15+01:00 -local meta_author='Paul Buetow' +local meta_date=2021-04-22T19:28:41+01:00 +local meta_author="Paul Buetow" local meta_email=comments@mx.buetow.org -local meta_title='DTail - The distributed log tail program' -local meta_summary='This article first appeared at the Mimecast Engineering Blog but I made it available here in my personal Gemini capsule too....' +local meta_title="DTail - The distributed log tail program" +local meta_summary="This article first appeared at the Mimecast Engineering Blog but I made it available here in my personal Gemini capsule too." diff --git a/content/meta/gemfeed/2021-04-24-welcome-to-the-geminispace.meta b/content/meta/gemfeed/2021-04-24-welcome-to-the-geminispace.meta index fd1f3447..81555bfd 100644 --- a/content/meta/gemfeed/2021-04-24-welcome-to-the-geminispace.meta +++ b/content/meta/gemfeed/2021-04-24-welcome-to-the-geminispace.meta @@ -1,5 +1,5 @@ -local meta_date=2021-04-30T10:04:15+01:00 -local meta_author='Paul Buetow' +local meta_date=2021-04-24T19:28:41+01:00 +local meta_author="Paul Buetow" local meta_email=comments@mx.buetow.org -local meta_title='Welcome to the Geminispace' -local meta_summary='Have you reached this article already via Gemini? You need a special client for that, web browsers such as Firefox, Chrome, Safari etc. don't support the Gemini protocol. The Gemini address of this site (or the address of this capsule as people say in Geminispace) is:...' +local meta_title="Welcome to the Geminispace" +local meta_summary="Have you reached this article already via Gemini? You need a special client for that, web browsers such as Firefox, Chrome, Safari etc. don't support the Gemini protocol. The Gemini address of this site (or the address of this capsule as people say in Geminispace) is:" -- cgit v1.2.3