diff options
| author | Shulhan <ms@kilabit.info> | 2024-08-18 23:15:14 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-08-18 23:15:14 +0700 |
| commit | ab30741ac2985444402ab00e3da127746a0b8fe0 (patch) | |
| tree | 70a1dc9dd4c85f4b3a52d9f048d1f9ae040c54ba | |
| parent | 03707011785fe5c9d3afa0491f5a7154ef028576 (diff) | |
| download | ciigo-ab30741ac2985444402ab00e3da127746a0b8fe0.tar.xz | |
go.mod: update asciidoctor-go to the tip
| -rw-r--r-- | filehtml.go | 12 | ||||
| -rw-r--r-- | go.mod | 2 | ||||
| -rw-r--r-- | go.sum | 4 |
3 files changed, 9 insertions, 9 deletions
diff --git a/filehtml.go b/filehtml.go index 0f69f74..da1de1d 100644 --- a/filehtml.go +++ b/filehtml.go @@ -43,15 +43,15 @@ func (fhtml *fileHTML) unpackAdocMetadata(doc *asciidoctor.Document) { fhtml.Title = doc.Title.String() fhtml.Styles = fhtml.Styles[:0] - for k, v = range doc.Attributes { + for k, v = range doc.Attributes.Entry { switch k { case metadataStylesheet: fhtml.Styles = append(fhtml.Styles, v) - case asciidoctor.MetaNameAuthorNames: - fhtml.Metadata[asciidoctor.MetaNameAuthor] = v - case asciidoctor.MetaNameDescription, - asciidoctor.MetaNameGenerator, - asciidoctor.MetaNameKeywords: + case asciidoctor.DocAttrAuthorNames: + fhtml.Metadata[asciidoctor.DocAttrAuthor] = v + case asciidoctor.DocAttrDescription, + asciidoctor.DocAttrGenerator, + asciidoctor.DocAttrKeywords: fhtml.Metadata[k] = v } } @@ -6,7 +6,7 @@ module git.sr.ht/~shulhan/ciigo go 1.21 require ( - git.sr.ht/~shulhan/asciidoctor-go v0.5.2 + git.sr.ht/~shulhan/asciidoctor-go v0.5.3-0.20240815173049-e9b1dce76d78 git.sr.ht/~shulhan/pakakeh.go v0.56.0 github.com/yuin/goldmark v1.7.4 github.com/yuin/goldmark-meta v1.1.0 @@ -1,5 +1,5 @@ -git.sr.ht/~shulhan/asciidoctor-go v0.5.2 h1:tjG/NQJ1om2F70L7DwOvmr+n1kfgk9xhIBX+MKzFOIQ= -git.sr.ht/~shulhan/asciidoctor-go v0.5.2/go.mod h1:fHXUiw7IbOOMyoHHvnd351Jini/MNZgutiFTtsCQ+Yk= +git.sr.ht/~shulhan/asciidoctor-go v0.5.3-0.20240815173049-e9b1dce76d78 h1:wsgKhkqtP90bXBt+i3ld/wfmRomAL6u3+gzw8OtZEVQ= +git.sr.ht/~shulhan/asciidoctor-go v0.5.3-0.20240815173049-e9b1dce76d78/go.mod h1:Onfsr4NNCBTwGvtc/BChy3LGoYeDHAh5p9gF8kHpAY0= git.sr.ht/~shulhan/pakakeh.go v0.56.0 h1:fZLK/wnt1YRKHJfEpTvVYLtn+tbcQbuehZiSXdPIByE= git.sr.ht/~shulhan/pakakeh.go v0.56.0/go.mod h1:UuyZtTCMJaTZI/33DBlyyJt1eF96fDPhPg9ZBHptWMU= github.com/yuin/goldmark v1.7.4 h1:BDXOHExt+A7gwPCJgPIIq7ENvceR7we7rOS9TNoLZeg= |
