@enure/jacklin 2.0.5 → 2.0.7
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 +2 -2
- package/package.json +1 -1
- package/template.handlebars +5 -2
package/index.ts
CHANGED
|
@@ -18,9 +18,9 @@ Handlebars.registerHelper("getShortDate", (dateStr) => {
|
|
|
18
18
|
if (typeof dateStr === 'string') {
|
|
19
19
|
const date = new Date(dateStr);
|
|
20
20
|
const year = date.getFullYear();
|
|
21
|
-
const month = date.getMonth();
|
|
21
|
+
const month = date.getMonth() + 1;
|
|
22
22
|
const fullMonth = month.toString().length === 1 ? `0${month}` : month;
|
|
23
|
-
return `${
|
|
23
|
+
return `${fullMonth}/${year}`;
|
|
24
24
|
} else {
|
|
25
25
|
return dateStr;
|
|
26
26
|
}
|
package/package.json
CHANGED
package/template.handlebars
CHANGED
|
@@ -98,6 +98,9 @@
|
|
|
98
98
|
border: 1px solid #aaa;
|
|
99
99
|
border-radius: 4px;
|
|
100
100
|
}
|
|
101
|
+
.u-nobr {
|
|
102
|
+
break-inside: avoid;
|
|
103
|
+
}
|
|
101
104
|
</style>
|
|
102
105
|
</head>
|
|
103
106
|
<body>
|
|
@@ -134,7 +137,7 @@
|
|
|
134
137
|
<ul class="WorkList">
|
|
135
138
|
{{#each work}}
|
|
136
139
|
{{#if this.isFeatured}}
|
|
137
|
-
<li class="WorkList-item">
|
|
140
|
+
<li class="WorkList-item u-nobr">
|
|
138
141
|
<div class="WorkList-positionAt">
|
|
139
142
|
{{this.position}} at {{this.name}}
|
|
140
143
|
</div>
|
|
@@ -156,7 +159,7 @@
|
|
|
156
159
|
{{/each}}
|
|
157
160
|
</ul>
|
|
158
161
|
</section>
|
|
159
|
-
<section>
|
|
162
|
+
<section class="u-nobr">
|
|
160
163
|
<h2>Work History, cont.</h2>
|
|
161
164
|
<ul class="SummaryList">
|
|
162
165
|
{{#each work}}
|