aboutsummaryrefslogtreecommitdiff
path: root/attribute_entry.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-12-16 00:54:47 +0700
committerShulhan <ms@kilabit.info>2022-12-16 00:54:47 +0700
commitab6eaa00847d5b468acbc503b7b19b3cc99fb8b8 (patch)
treecfe691a0315d91258d24b12bd831f8988e4f5911 /attribute_entry.go
parent4b1ade55e50aa2768deecf101cb8d7c24f3bb6b3 (diff)
downloadasciidoctor-go-ab6eaa00847d5b468acbc503b7b19b3cc99fb8b8.tar.xz
all: add support for document attribute "last-update-label"
By default the last-update-label value set to "Last updated" and the value is the document modification time. If the label is suppressed with "!", no "Last updated" will be print on the footer.
Diffstat (limited to 'attribute_entry.go')
-rw-r--r--attribute_entry.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/attribute_entry.go b/attribute_entry.go
index a4dd722..c1d329f 100644
--- a/attribute_entry.go
+++ b/attribute_entry.go
@@ -11,11 +11,13 @@ type AttributeEntry map[string]string
func newAttributeEntry() AttributeEntry {
return AttributeEntry{
- MetaNameGenerator: `asciidoctor-go ` + Version,
- metaNameSectIDs: ``,
- metaNameShowTitle: ``,
- metaNameTableCaption: ``,
- metaNameVersionLabel: ``,
+ MetaNameGenerator: `asciidoctor-go ` + Version,
+ metaNameLastUpdateLabel: `Last updated`,
+ metaNameLastUpdateValue: ``,
+ metaNameSectIDs: ``,
+ metaNameShowTitle: ``,
+ metaNameTableCaption: ``,
+ metaNameVersionLabel: ``,
}
}