add ne helper and use it for negated equality test
authorDan Allen <dan@opendevise.com>
Tue, 8 Dec 2020 23:48:54 +0000 (16:48 -0700)
committerDan Allen <dan@opendevise.com>
Tue, 8 Dec 2020 23:48:54 +0000 (16:48 -0700)
src/helpers/ne.js [new file with mode: 0644]
src/partials/breadcrumbs.hbs

diff --git a/src/helpers/ne.js b/src/helpers/ne.js
new file mode 100644 (file)
index 0000000..245f03b
--- /dev/null
@@ -0,0 +1,3 @@
+'use strict'
+
+module.exports = (a, b) => a !== b
index 95ef907..24b6fb0 100644 (file)
@@ -2,7 +2,7 @@
   {{#if page.breadcrumbs}}
   <ul>
     {{#with page.componentVersion}}
-    {{#if (and ./title (not (eq ./title @root.page.breadcrumbs.0.content)))}}
+    {{#if (and ./title (ne ./title @root.page.breadcrumbs.0.content))}}
     <li><a href="{{{relativize ./url}}}">{{{./title}}}</a></li>
     {{/if}}
     {{/with}}