@enure/jacklin 3.0.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.ts CHANGED
@@ -3,6 +3,8 @@ import { dirname, resolve } from "path";
3
3
  import { readFileSync } from "fs";
4
4
  import Handlebars from "handlebars";
5
5
 
6
+ Handlebars.registerHelper("or", (a, b) => a || b);
7
+
6
8
  Handlebars.registerHelper("getShortDate", (dateStr) => {
7
9
  if (typeof dateStr === 'string') {
8
10
  const date = new Date(dateStr);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enure/jacklin",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -177,7 +177,7 @@
177
177
  <h2>Work History, cont.</h2>
178
178
  <ul class="SummaryList">
179
179
  {{#each work}}
180
- {{#unless this.isFeatured}}
180
+ {{#unless (or this.isFeatured this.hide)}}
181
181
  <li class="SummaryList-item">
182
182
  <span class="SummaryList-itemName">{{this.name}}</span> <span class="SummaryList-itemPosition">({{this.position}})</span>
183
183
  </li>