A tool converts Gemini capsule to web site.
This repository has been archived on 2024年12月12日 . You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
- Go 96.8%
- Makefile 3.2%
| .gitignore | init | |
| go.mod | Add code highlight | |
| go.sum | Add code highlight | |
| main.go | Skip up to dated files | |
| Makefile | Add Makefile | |
| README.md | Support external css | |
| test.gmi | use template | |
Introduction
gem2site is a tool to convert Gemini site(or capsule in Gemini's term) to web site.
Given a Gemini capsule like the following:
my_capsule
- index.gmi
- posts
- post-1.gmi
- articles
- article-1.gmi
- mypdf.pdf
gem2site my_capsule my_site produce contents under my_site:
my_site
- index.html
- posts
- post-1.html
- articles
- article-1.html
- mypdf.pdf
- Folder structure kept the same as source
.gmifiles got translated to html- Other files are copied intact
Status
I'm already using it for my personal site, but there are still some work to do.
TODOs
- Customizable template
- embed a default template
- option to dump default template
- option to specify template to use
- option to specify external css link
- optional convert image/video/audio links to corresponding html tags