@enure/jacklin 2.0.8 → 2.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.js CHANGED
@@ -5554,6 +5554,9 @@ import_handlebars.default.registerHelper("getShortDate", (dateStr) => {
5554
5554
  return dateStr;
5555
5555
  }
5556
5556
  });
5557
+ import_handlebars.default.registerHelper("getTelLink", (string) => {
5558
+ return "tel:+1" + string.replace("(", "").replace(")", "").replace("-", "").replace(" ", "");
5559
+ });
5557
5560
  var render = (resume) => {
5558
5561
  const modulePath = dirname(fileURLToPath(import.meta.url));
5559
5562
  const template = readFileSync(resolve(modulePath, "./template.handlebars"), "utf8");
package/index.ts CHANGED
@@ -26,6 +26,11 @@ Handlebars.registerHelper("getShortDate", (dateStr) => {
26
26
  }
27
27
  });
28
28
 
29
+ Handlebars.registerHelper("getTelLink", (string) => {
30
+ return 'tel:+1' + string.replace('(', '').replace(')', '').replace('-', '').replace(' ', '')
31
+ });
32
+
33
+
29
34
  export const render = (resume) => {
30
35
  const modulePath = dirname(fileURLToPath(import.meta.url));
31
36
  const template = readFileSync(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enure/jacklin",
3
- "version": "2.0.8",
3
+ "version": "2.1.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -28,10 +28,7 @@
28
28
  main {
29
29
  max-width: 800px;
30
30
  }
31
- main {
32
- margin-top: 48px;
33
- }
34
- main > section {
31
+ section {
35
32
  margin-top: 36px;
36
33
  }
37
34
  h1, h2 {
@@ -101,25 +98,41 @@
101
98
  .u-nobr {
102
99
  break-inside: avoid;
103
100
  }
101
+ a {
102
+ text-decoration: none;
103
+ color: inherit;
104
+ }
104
105
  </style>
105
106
  </head>
106
107
  <body>
107
108
  <header>
108
- <h1>
109
- {{ basics.name }}
110
- </h1>
111
- <ul class="BasicsList">
112
- <li>{{ basics.phone }}</li>
113
- <li>{{ basics.email }}</li>
114
- {{!-- <li>{{ basics.location.address }}</li> --}}
115
- <li>{{ basics.location.city }}, {{ basics.location.region }} {{!-- basics.location.postalCode --}}</li>
116
- </ul>
117
- <h2>
118
- {{ basics.label }}
119
- </h2>
120
- <p>
121
- {{ basics.summary }}
122
- </p>
109
+ <section>
110
+ <h1>
111
+ {{ basics.name }}
112
+ </h1>
113
+ <ul class="BasicsList">
114
+ <li>
115
+ <a href="{{ getTelLink basics.phone }}">
116
+ {{ basics.phone }}
117
+ </a>
118
+ </li>
119
+ <li>
120
+ <a href="mailto:{{ basics.email }}">
121
+ {{ basics.email }}
122
+ </a>
123
+ </li>
124
+ {{!-- <li>{{ basics.location.address }}</li> --}}
125
+ <li>{{ basics.location.city }}, {{ basics.location.region }} {{!-- basics.location.postalCode --}}</li>
126
+ </ul>
127
+ </section>
128
+ <section>
129
+ <h2>
130
+ {{ basics.label }}
131
+ </h2>
132
+ <p>
133
+ {{ basics.summary }}
134
+ </p>
135
+ </section>
123
136
  </header>
124
137
  <main>
125
138
  <section>