Archived
1
0
Fork
You've already forked gem2site
0
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%
2023年12月06日 22:04:44 +08:00
.gitignore init 2023年08月08日 16:03:02 +08:00
go.mod Add code highlight 2023年11月14日 19:23:03 +08:00
go.sum Add code highlight 2023年11月14日 19:23:03 +08:00
main.go Skip up to dated files 2023年12月01日 21:29:53 +08:00
Makefile Add Makefile 2023年12月06日 22:04:44 +08:00
README.md Support external css 2023年08月11日 11:22:43 +08:00
test.gmi use template 2023年08月08日 20:16:32 +08:00

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
  • .gmi files 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