|
mio
7d303514bd
Add date for posts in index page generation
- Add date for posts in the index page for them to be compatible with Gemini Subscription - Adjust tests |
||
|---|---|---|
| langs | Bugfixes | |
| templates | Add support for customised page templates | |
| tests | Add date for posts in index page generation | |
| .gitignore | Bugfixes | |
| gemwriter.nim | Add date for posts in index page generation | |
| gw.nim | Add tests | |
| Makefile | Bugfixes | |
| readme.md | Bugfixes | |
| translations.nim | Bugfixes | |
Gemwriter
A little command-line helper for publishing Gemini capsules or sites.
Features
- Add and list capsules
- Add new pages or gemlog posts
- Generate an index page and Atom feed
- Publish with a custom terminal command (e.g. via scp, rsync)
Requirements
- Linux or Unix-based OS
- Nim 2.0.0+
- A file transfer application such as scp or rsync if publishing to a remote server
Build and install
-
Get Nim from the official website or system distribution repos. Optionally install
make. -
Download and extract the source archive. Change into the source directory and run
maketo build the executable. (If not using make, run this command to build:nim c -d:release gw.nim) -
Run
make installwith superuser privileges or move thegwexecutable to a location in your$PATH.
Quick start
-
Run
gw listto see a list of capsules, which will also create a configuration file when run for the first time. -
Edit
~/.config/gemwriter/config.jsonwith details about your capsule or gemlog. -
Create a new page:
gw page [capsule] "Hello World!" -
Publish your capsule:
gw publish [capsule]
You can also type gw help for a list of available options.
Contributing translations
-
Copy
langs/en.jsonand rename the copy aslangs/[lang].json, where[lang]is the ISO-639-1 language code for the target language, e.g.jafor Japanese. -
Add the language under the
langsvariable intranslations.nim. -
Open a PR with the changes.