diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/asciidoctor/backends/html5.rb | 8 | ||||
| -rw-r--r-- | lib/asciidoctor/document.rb | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/lib/asciidoctor/backends/html5.rb b/lib/asciidoctor/backends/html5.rb index 6d331662..55796bbe 100644 --- a/lib/asciidoctor/backends/html5.rb +++ b/lib/asciidoctor/backends/html5.rb @@ -127,7 +127,7 @@ unless noheader %> end end if attr? :revnumber %> -<span id="revnumber">version <%= attr :revnumber %><%= (attr? :revdate) ? ',' : '' %></span><% +<span id="revnumber"><%= ((attr 'version-label') || '').downcase %> <%= attr :revnumber %><%= (attr? :revdate) ? ',' : '' %></span><% end if attr? :revdate %> <span id="revdate"><%= attr :revdate %></span><% @@ -160,9 +160,11 @@ end %> <div id="footer"> <div id="footer-text"><% if attr? :revnumber %> -Version <%= attr :revnumber %><br><% +<%= %(\#{attr 'version-label'} \#{attr :revnumber}) %><% +end +if attr? 'last-update-label' %> +<%= %(\#{attr 'last-update-label'} \#{attr :docdatetime}) %><% end %> -Last updated <%= attr :docdatetime %> </div> </div> </body> diff --git a/lib/asciidoctor/document.rb b/lib/asciidoctor/document.rb index bc9e74fb..565e1f83 100644 --- a/lib/asciidoctor/document.rb +++ b/lib/asciidoctor/document.rb @@ -160,6 +160,8 @@ class Document < AbstractBlock #@attributes['listing-caption'] = 'Listing' @attributes['table-caption'] = 'Table' @attributes['toc-title'] = 'Table of Contents' + @attributes['version-label'] = 'Version' + @attributes['last-update-label'] = 'Last updated' # attribute overrides are attributes that can only be set from the commandline # a direct assignment effectively makes the attribute a constant |
