set generator if antoraVersion is set in UI model
authorDan Allen <dan@opendevise.com>
Fri, 23 Mar 2018 08:26:52 +0000 (02:26 -0600)
committerDan Allen <dan@opendevise.com>
Fri, 23 Mar 2018 08:26:52 +0000 (02:26 -0600)
preview-site-src/ui-model.yml
src/layouts/default.hbs

index 84e548d..20a364f 100644 (file)
@@ -1,3 +1,4 @@
+antoraVersion: '1.0.0'
 site:
   url: http://localhost:5252
   title: Brand Docs
index 850a3b2..6b30502 100644 (file)
@@ -13,6 +13,9 @@
     {{#if page.keywords}}
     <meta name="keywords" content="{{page.keywords}}">
     {{/if}}
+    {{#if (or antoraVersion site.antoraVersion)}}
+    <meta name="generator" content="Antora {{or antoraVersion site.antoraVersion}}">
+    {{/if}}
     <link rel="stylesheet" href="{{uiRootPath}}/css/site.css">
 {{> head}}
   </head>