在 asciidoc/asciidoctor 中不呈现时间戳

Exclude timestamp from being rendered in asciidoc/asciidoctor

是否可以 exclude/suppress 在 asciidoc/asciidoctor 中生成时间戳?它是页面底部的 "Last updated..." 页脚。

P.S 我想在 asciidoctor 中做到这一点。

可以重新定义生成 "Last ..." 消息的模板。使用以下内容创建一个新文件 nofooter.conf

[footer-text]
<single space on this line>

然后使用下面的命令使HTML:

asciidoc -f nofooter.conf file.txt

它应该产生空 <div id="footer-text"></div>

UPD. 对于 asciidoctor 可以指定属性 nofooter:

asciidoctor -a nofooter file.txt

使用:nofooter: document attribute.