1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-10-25 12:47:41 +00:00

Migrate to mycomarkup v0.4.0

This commit is contained in:
Timur Ismagilov
2021-05-25 12:11:16 +05:00
parent ec1eafc0e4
commit b95729df39
7 changed files with 19 additions and 17 deletions

View File

@@ -21,8 +21,6 @@ import (
"github.com/bouncepaw/mycorrhiza/cfg"
"github.com/bouncepaw/mycorrhiza/hyphae"
"github.com/bouncepaw/mycorrhiza/util"
"github.com/bouncepaw/mycomarkup/doc"
)
func geminiHomeHypha(w *gemini.ResponseWriter, rq *gemini.Request) {
@@ -46,8 +44,7 @@ func geminiHypha(w *gemini.ResponseWriter, rq *gemini.Request) {
if h.Exists {
fileContentsT, errT := ioutil.ReadFile(h.TextPath)
if errT == nil {
md := doc.Doc(hyphaName, string(fileContentsT))
contents = md.AsGemtext()
contents = string(fileContentsT)
}
}
if hasAmnt {