mirror of
https://git.sr.ht/~adnano/kiln
synced 2024-10-30 09:23:09 +00:00
Update go-gemini dependency
This commit is contained in:
parent
84fde17123
commit
26e6a0b05b
2
go.mod
2
go.mod
|
@ -2,4 +2,4 @@ module kiln
|
||||||
|
|
||||||
go 1.15
|
go 1.15
|
||||||
|
|
||||||
require git.sr.ht/~adnano/go-gemini v0.1.3
|
require git.sr.ht/~adnano/go-gemini v0.1.4
|
||||||
|
|
4
go.sum
4
go.sum
|
@ -1,2 +1,2 @@
|
||||||
git.sr.ht/~adnano/go-gemini v0.1.3 h1:uClB4mzTkHBMKBde63/EzrsIhRuHxxaNHVRf1/gApXU=
|
git.sr.ht/~adnano/go-gemini v0.1.4 h1:va3yFDqPQHwcE6AxaP1gBkPlOkSeLXJJqdTTjQzBppY=
|
||||||
git.sr.ht/~adnano/go-gemini v0.1.3/go.mod h1:If1VxEWcZDrRt5FeAFnGTcM2Ud1E3BXs3VJ5rnZWKq0=
|
git.sr.ht/~adnano/go-gemini v0.1.4/go.mod h1:If1VxEWcZDrRt5FeAFnGTcM2Ud1E3BXs3VJ5rnZWKq0=
|
||||||
|
|
2
main.go
2
main.go
|
@ -441,7 +441,7 @@ func outputHTML(p *Page) (path string, content []byte) {
|
||||||
path = filepath.Join(p.Permalink, indexPath)
|
path = filepath.Join(p.Permalink, indexPath)
|
||||||
|
|
||||||
r := bytes.NewReader(p.content)
|
r := bytes.NewReader(p.content)
|
||||||
text := gemini.Parse(r)
|
text := gemini.ParseText(r)
|
||||||
content = []byte(textToHTML(text))
|
content = []byte(textToHTML(text))
|
||||||
|
|
||||||
type tmplCtx struct {
|
type tmplCtx struct {
|
||||||
|
|
Loading…
Reference in a new issue