Fix Gemini content output path

This commit is contained in:
adnano 2021-03-19 23:44:02 -04:00
parent c382c296c8
commit fd187da71d

View file

@ -19,7 +19,7 @@ func (f FormatFunc) Format(p *Page, cfg *Config) (string, []byte) {
// FormatGemini formats the page as Gemini text. // FormatGemini formats the page as Gemini text.
func FormatGemini(p *Page, cfg *Config) (path string, content []byte) { 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) content = []byte(p.Content)
return return
} }