gopher convert: make json a text type, add some modern image types (unused) - www.codemadness.org - www.codemadness.org saait content files
(HTM) git clone git://git.codemadness.org/www.codemadness.org
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit d9f1e9b080a457f072eafde51f8146e316e07e0f
(DIR) parent 672cccc7cb898b2a4acd8764f4567ef72f2264c2
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 14 Apr 2023 12:06:00 +0200
gopher convert: make json a text type, add some modern image types (unused)
Diffstat:
M output/phlog/atom | 4 ++--
M scripts/md2gopher.sh | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
(DIR) diff --git a/output/phlog/atom b/output/phlog/atom
@@ -33,8 +33,8 @@ i codemadness.org 70
i codemadness.org 70
h## JSONfeed 1.1 URL:https://www.jsonfeed.org/version/1.1/ codemadness.org 70
i codemadness.org 70
-9* JSONfeed 1.1 feed, smaller filesize with only a summary: »jsonfeed.json«. /jsonfeed.json codemadness.org 70
-9* JSONfeed 1.1 feed with content: »jsonfeed_content.json«. /jsonfeed_content.json codemadness.org 70
+0* JSONfeed 1.1 feed, smaller filesize with only a summary: »jsonfeed.json«. /jsonfeed.json codemadness.org 70
+0* JSONfeed 1.1 feed with content: »jsonfeed_content.json«. /jsonfeed_content.json codemadness.org 70
i codemadness.org 70
i codemadness.org 70
i## Atom feeds for the git repositories codemadness.org 70
(DIR) diff --git a/scripts/md2gopher.sh b/scripts/md2gopher.sh
@@ -73,13 +73,13 @@ function parseurl(s) {
# detect Gopher type by extension/filename/path/URL.
function detecttype(s) {
s = tolower(s); # case-insensitive
- if (match(s, /\.(txt|md|sh|mk|c|h|pl|s|css|js|xml|mbox|sha256|patch|diff|conf|vim)$/))
+ if (match(s, /\.(txt|md|sh|mk|c|h|pl|s|css|js|xml|mbox|sha256|patch|diff|conf|vim|json)$/))
return "0"; # text
if (match(s, /(^|[\/])(Makefile|README|TODO|cgitrc)$/))
return "0"; # text
if (match(s, /\.(htm|html)$/))
return "h"; # HTML
- if (match(s, /\.(gif|png|webp|jpg|jpeg|bmp|xpm)$/))
+ if (match(s, /\.(gif|png|webp|jpg|jpeg|bmp|xpm|webp|avif)$/))
return "I"; # image
return "9"; # binary
}