Fix Gemini content output path

This commit is contained in:
Adnan Maolood 2021-03-19 23:44:02 -04:00
parent a2d35e790b
commit acfe42c25f

View file

@ -19,7 +19,7 @@ func (f FormatFunc) Format(p *Page, cfg *Config) (string, []byte) {
// FormatGemini formats the page as Gemini text.
func FormatGemini(p *Page, cfg *Config) (path string, content []byte) {
path = pathpkg.Join(path, "index.gmi")
path = pathpkg.Join(p.Path, "index.gmi")
content = []byte(p.Content)
return
}