jsonresume-theme-tech 1.5.1 → 1.6.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.js CHANGED
@@ -12,6 +12,17 @@ function validateArray(arr) {
12
12
  return arr !== undefined && arr !== null && arr instanceof Array && arr.length > 0;
13
13
  }
14
14
 
15
+ var MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
16
+
17
+ // "2025-06" or "2025-06-01" -> "Jun 2025"; other values (e.g. "2016") pass through.
18
+ function formatDate(value) {
19
+ var match = /^(\d{4})-(\d{2})(-\d{2})?$/.exec(String(value));
20
+ var month = match && MONTHS[Number(match[2]) - 1];
21
+ return month ? month + " " + match[1] : value;
22
+ }
23
+
24
+ Handlebars.registerHelper("date", formatDate);
25
+
15
26
  function render(resume) {
16
27
  PREPEND_SUMMARY_CATEGORIES.forEach(function(category) {
17
28
  if (resume[category] !== undefined) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsonresume-theme-tech",
3
- "version": "1.5.1",
3
+ "version": "1.6.0",
4
4
  "description": "A clean, modern JSON Resume theme tailored for tech professionals, senior engineers, and startup founders",
5
5
  "author": "Gaurav Bansal",
6
6
  "repository": {
package/resume.hbs CHANGED
@@ -38,7 +38,7 @@
38
38
  {{#if resume.basics._showExecutiveSummary}}
39
39
  <div class='summaryBlock'>
40
40
  <h2 class='sectionName'>
41
- <span>Executive Summary</span>
41
+ <span>{{#if resume.meta.summaryTitle}}{{resume.meta.summaryTitle}}{{else}}Executive Summary{{/if}}</span>
42
42
  </h2>
43
43
  <div class='sectionContent'>
44
44
  {{#if resume.basics.summary}}<p class='summary summaryProse'>{{{resume.basics.summary}}}</p>{{/if}}
@@ -69,7 +69,7 @@
69
69
  {{#if name}}<div class='companyLine'><span class='companyName'>{{{name}}}</span>{{#if location}}, {{{location}}}{{/if}}</div>{{/if}}
70
70
  {{#if startDate}}
71
71
  <div class='dateLine'>
72
- <span class='date'>{{#if startDate}}{{startDate}}{{/if}} - {{#if endDate}}{{endDate}}{{else}}Present{{/if}}</span>
72
+ <span class='date'>{{#if startDate}}{{date startDate}}{{/if}} - {{#if endDate}}{{date endDate}}{{else}}Present{{/if}}</span>
73
73
  </div>
74
74
  {{/if}}
75
75
  </div>
@@ -111,7 +111,7 @@
111
111
  </h3>
112
112
  {{#if startDate}}
113
113
  <div class='dateLine'>
114
- <span class='date'>{{startDate}} - {{#if endDate}}{{endDate}}{{else}}Present{{/if}}</span>
114
+ <span class='date'>{{date startDate}} - {{#if endDate}}{{date endDate}}{{else}}Present{{/if}}</span>
115
115
  </div>
116
116
  {{/if}}
117
117
  </div>
@@ -196,7 +196,7 @@
196
196
  {{#if studyType}}<div class='degree'><em>{{{studyType}}}{{#if area}} ({{{area}}}){{/if}}</em></div>{{/if}}
197
197
  {{#if startDate}}
198
198
  <div class='dateLine'>
199
- <span class='date'>{{startDate}} - {{#if endDate}}{{endDate}}{{else}}Present{{/if}}</span>
199
+ <span class='date'>{{date startDate}} - {{#if endDate}}{{date endDate}}{{else}}Present{{/if}}</span>
200
200
  </div>
201
201
  {{/if}}
202
202
  </div>
@@ -314,7 +314,7 @@
314
314
  {{#if position}}<div class='position'><strong>{{{position}}}</strong></div>{{/if}}
315
315
  {{#if startDate}}
316
316
  <div class='dateLine'>
317
- <span class='date'>{{#if startDate}}{{startDate}}{{/if}} - {{#if endDate}}{{endDate}}{{else}}Present{{/if}}</span>
317
+ <span class='date'>{{#if startDate}}{{date startDate}}{{/if}} - {{#if endDate}}{{date endDate}}{{else}}Present{{/if}}</span>
318
318
  </div>
319
319
  {{/if}}
320
320
  </div>
package/style.css CHANGED
@@ -116,40 +116,31 @@ h2.sectionName {
116
116
  }
117
117
 
118
118
  /*
119
- * Company / degree + dates: float layout (right edge ≈ Word right-tab), not table/flex.
120
- * Title + date (projects, awards, …): same pattern.
119
+ * Company / degree + dates: flex row (date pinned right). Floats are NOT used:
120
+ * Chromium paints floats before in-flow text, which put every company/date
121
+ * line ahead of the candidate name in the PDF text stream (breaks ATS reading order).
122
+ * Flex items are painted in DOM order.
121
123
  */
122
124
  .blockHeader {
123
125
  display: block;
124
126
  margin-bottom: 1px;
125
127
  }
126
128
 
127
- .blockHeader::after,
128
- .metaRow::after {
129
- content: "";
130
- /* Safer clearfix than `display: table` for PDF/ATS extraction */
131
- display: block;
132
- clear: both;
133
- }
134
-
135
129
  .blockHeader.blockHeaderInlineMeta {
136
- display: block;
130
+ display: flex;
131
+ justify-content: space-between;
132
+ align-items: baseline;
137
133
  width: 100%;
138
- overflow: hidden;
139
134
  }
140
135
 
141
136
  .blockHeader.blockHeaderInlineMeta h3.title {
142
- float: left;
143
- /* Patents/Projects titles sit left of a long, nowrap dateLine.
144
- Keep the title wide enough to avoid wrapping while still leaving
145
- space for the right-aligned date text. */
146
- max-width: calc(100% - 12em);
137
+ flex: 1 1 auto;
147
138
  padding-right: 0.5em;
148
139
  min-width: 0;
149
140
  }
150
141
 
151
142
  .blockHeader.blockHeaderInlineMeta .dateLine {
152
- float: right;
143
+ flex: none;
153
144
  margin-top: 0;
154
145
  text-align: right;
155
146
  white-space: nowrap;
@@ -188,18 +179,17 @@ h3.subSectionName {
188
179
  }
189
180
 
190
181
  .metaRow {
191
- display: block;
182
+ display: flex;
183
+ justify-content: space-between;
184
+ align-items: baseline;
192
185
  width: 100%;
193
186
  margin-top: 1px;
194
- overflow: hidden;
195
187
  }
196
188
 
197
189
  .metaRow .companyLine,
198
190
  .metaRow .degree,
199
191
  .metaRow .position {
200
- float: left;
201
- clear: left;
202
- max-width: calc(100% - 14em);
192
+ flex: 1 1 auto;
203
193
  padding-right: 1em;
204
194
  min-width: 0;
205
195
  margin: 0;
@@ -207,7 +197,7 @@ h3.subSectionName {
207
197
  }
208
198
 
209
199
  .metaRow .dateLine {
210
- float: right;
200
+ flex: none;
211
201
  margin-top: 0;
212
202
  text-align: right;
213
203
  white-space: nowrap;
@@ -292,16 +282,17 @@ h3.subSectionName {
292
282
  }
293
283
 
294
284
  .sectionContent ul > li {
295
- position: relative;
296
285
  padding-left: 1.15em;
297
286
  margin-bottom: 1px;
298
287
  color: var(--resume-body);
299
288
  }
300
289
 
290
+ /* Inline (not absolutely positioned) so the bullet precedes its text in the PDF stream */
301
291
  .sectionContent ul > li::before {
302
292
  content: "\2022";
303
- position: absolute;
304
- left: 0;
293
+ display: inline-block;
294
+ width: 1.15em;
295
+ margin-left: -1.15em;
305
296
  color: var(--resume-accent);
306
297
  font-weight: normal;
307
298
  }
@@ -525,6 +516,15 @@ ul.coursesList {
525
516
  /* Keep role/company header with the start of its body; bullets may continue on next page. */
526
517
  .sectionContent > div > .blockHeader,
527
518
  .sectionContent > div > .publicationHeader {
519
+ break-inside: avoid;
520
+ page-break-inside: avoid;
521
+ break-after: avoid;
522
+ page-break-after: avoid;
523
+ }
524
+
525
+ /* Never end a page between a role header, its intro and the first bullet. */
526
+ .jobBlock > .summary {
527
+ break-inside: avoid;
528
528
  break-after: avoid;
529
529
  page-break-after: avoid;
530
530
  }
Binary file