Commit graph

11 commits

Author SHA1 Message Date
Timur Demin
9d16372487
Implement sourcing _index.md content
Fixes #5. The Markdown content is sourced from _index.gmi.md so we don't
interfere with native Web content.
2020-11-19 21:12:59 +05:00
Timur Demin
0a62f8142c
Fix single template not being sourced 2020-11-19 04:30:37 +05:00
Timur Demin
6859f3d57c
Fix panic on draft posts 2020-11-19 03:32:55 +05:00
Timur Demin
1a0e61dc3f
Implement gmnhg
gmnhg is the new program that generates a Gemini site from Hugo site
content. It reads its input from content/, static/, and layouts/gmnhg/.
Its output by default goes to output/.

More doc is available in the program doc header.
2020-11-18 22:23:31 +05:00
Timur Demin
8226a20880
Change API for simpler use by gmnhg 2020-11-11 23:21:18 +05:00
Timur Demin
b181afc5f1
Add YAML front matter parsing support
Fixes #1. Only a subset of Hugo front matter props are supported, namely
title/date.
2020-11-11 23:21:17 +05:00
Timur Demin
32ec381d73
Add README and license code under GPLv3 2020-11-11 23:21:16 +05:00
Timur Demin
4d80d36f00
Provide a public API
This also introduces a simple program, md2gmn, that is meant for testing
the renderer on Markdown files. Nonetheless, it can be used as
a standalone tool as well.
2020-11-11 23:20:52 +05:00
Timur Demin
b2a941bdb6
Add preformatted text block support 2020-11-08 01:07:53 +05:00
Timur Demin
98d6ff6d5f
Add lists and subsequent link paras to test text 2020-11-08 00:06:43 +05:00
Timur Demin
85b0ef51b3
Add the latest code 2020-11-06 13:47:02 +05:00