use #with instead of #if to retrieve Antora version
authorDan Allen <dan@opendevise.com>
Sat, 4 Apr 2020 09:17:30 +0000 (03:17 -0600)
committerDan Allen <dan@opendevise.com>
Sat, 4 Apr 2020 09:17:30 +0000 (03:17 -0600)
src/partials/head-info.hbs

index d0a3653..71012a1 100644 (file)
@@ -9,6 +9,6 @@
     <meta name="keywords" content="{{page.keywords}}">
     {{/if}}
     {{/if}}
-    {{#if (or antoraVersion site.antoraVersion)}}
-    <meta name="generator" content="Antora {{or antoraVersion site.antoraVersion}}">
-    {{/if}}
+    {{#with (or antoraVersion site.antoraVersion)}}
+    <meta name="generator" content="Antora {{this}}">
+    {{/with}}