text fixes

This commit is contained in:
Alexander Lehmann 2023-03-05 20:04:48 +01:00
parent 83738c28d4
commit d9eed3865f
1 changed files with 9 additions and 7 deletions

View File

@ -5,23 +5,25 @@ replacement when someone visits the site with http instead of gemini.
This is currently relying on both gemtext2md and pandoc. The first is
available from https://github.com/mk270/gemtext2md and requires ocaml,
the second is available from pandoc.org and requires Haskell (though
when the program is installed as a system package it like does not
have any runtime requirements)
the second is available from https://pandoc.org and requires Haskell
(though when the program is installed as a system package it like does
not have any runtime requirements)
The script takes the source dir and the target dir as arguments,
e.g. I run it as
perl gemini2html.pl ~/gemini-site target
````
perl gemini2html.pl ~/gemini-site target
````
The script converts gmi files to html and puts a redirect file into
place to preserve the .gmi links, all other files are copied as is.
The files header.md and template.html can be edited to change the
surounding html, currently this lists my site as target.
surrounding html, currently this lists my site as target.
The script likely does not handle all cases correctly, it works for my
site at http://gemini.lehmann.cx/ reasonbaly ok (but the site has only
a few files)
site at http://gemini.lehmann.cx/ reasonabaly ok (but the site has
only a few files)
I should say that the stylesheet comes from rawtext.club, my design
capabilities are non-existent, that is why I like markdown and similar