jsonresume-theme-engineering 0.1.3 → 0.1.4

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # jsonresume-theme-engineering [![](https://badge.fury.io/js/jsonresume-theme-engineering.svg)](https://www.npmjs.org/package/jsonresume-theme-engineering)
2
2
 
3
- This is the engineering theme for [JSON Resume](http://jsonresume.org/), which aims to implement the best practices for engineering resumes described in https://www.reddit.com/r/EngineeringResumes/wiki/index/. It is intended [senior/staff level engineers](https://www.reddit.com/r/EngineeringResumes/wiki/index/#wiki_senior_engineers_and_above_.2810.2B_yoe.29).
3
+ This is the engineering theme for [JSON Resume](http://jsonresume.org/), which aims to implement the best practices for engineering resumes described in https://www.reddit.com/r/EngineeringResumes/wiki/index/. It is intended for [senior/staff level engineers](https://www.reddit.com/r/EngineeringResumes/wiki/index/#wiki_senior_engineers_and_above_.2810.2B_yoe.29).
4
4
 
5
5
  ## Getting started
6
6
 
package/index.js CHANGED
@@ -9,8 +9,15 @@ const
9
9
  Swag.registerHelpers(handlebars);
10
10
 
11
11
  handlebars.registerHelper({
12
- removeProtocol: function (url) {
13
- return url.replace(/.*?:\/\//g, '');
12
+
13
+ wrapURL: function (url) {
14
+ const wrappedUrl = '<a href="' + url + '">' + url.replace(/.*?:\/\//g, '') + "</a>";
15
+ return new handlebars.SafeString(wrappedUrl);
16
+ },
17
+
18
+ wrapMail: function (address) {
19
+ const wrappedAddress = '<a href="mailto:' + address + '">' + address + "</a>";
20
+ return new handlebars.SafeString(wrappedAddress);
14
21
  },
15
22
 
16
23
  concat: function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsonresume-theme-engineering",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "JSON Resume theme for engineers",
5
5
  "author": "Sören König",
6
6
  "repository": {
package/public/index.html CHANGED
@@ -36,6 +36,11 @@ ul {
36
36
  padding-left: 20px;
37
37
  }
38
38
 
39
+ a {
40
+ text-decoration: none;
41
+ color: black;
42
+ }
43
+
39
44
  .item {
40
45
  margin-top: 8px;
41
46
  }
@@ -115,10 +120,10 @@ ul {
115
120
  <section id="basics">
116
121
  <h1>Richard Hendriks</h1>
117
122
  <div class="contact centered">
118
- <span class="vertical-separator">richard.hendriks@piedpiper.com</span>
123
+ <span class="vertical-separator"><a href="mailto:richard.hendriks@piedpiper.com">richard.hendriks@piedpiper.com</a></span>
119
124
  <span class="vertical-separator">(912) 555-4321</span>
120
125
  <span class="vertical-separator">Palo Alto, US</span>
121
- <span class="vertical-separator">http://piedpiper.com</span>
126
+ <span class="vertical-separator"><a href="http://piedpiper.com">piedpiper.com</a></span>
122
127
  </div>
123
128
  <div class="summary">
124
129
  <h2>Summary</h2>
package/style.css CHANGED
@@ -26,6 +26,11 @@ ul {
26
26
  padding-left: 40px;
27
27
  }
28
28
 
29
+ a {
30
+ text-decoration: none;
31
+ color: black;
32
+ }
33
+
29
34
  .item {
30
35
  margin-top: 8px;
31
36
  }
@@ -70,4 +75,4 @@ ul {
70
75
  .vertical-separator:not(:first-child) {
71
76
  border-left: 1px solid #000;
72
77
  text-align: center;
73
- }
78
+ }
package/views/basics.hbs CHANGED
@@ -3,16 +3,16 @@
3
3
  <h1>{{name}}</h1>
4
4
  <div class="contact centered">
5
5
  {{#if email}}
6
- <span class="vertical-separator">{{email}}</span>
6
+ <span class="vertical-separator">{{wrapMail email}}</span>
7
7
  {{/if}}
8
8
  {{#if phone}}
9
9
  <span class="vertical-separator">{{phone}}</span>
10
10
  {{/if}}
11
11
  {{#if location}}
12
- <span class="vertical-separator">{{location.address}}, {{location.city}}, {{location.region}}</span>
12
+ <span class="vertical-separator">{{location.city}}, {{location.countryCode}}</span>
13
13
  {{/if}}
14
14
  {{#if website}}
15
- <span class="vertical-separator">{{website}}</span>
15
+ <span class="vertical-separator">{{wrapURL website}}</span>
16
16
  {{/if}}
17
17
  </div>
18
18
  {{#if summary}}
@@ -22,4 +22,4 @@
22
22
  </div>
23
23
  {{/if}}
24
24
  </section>
25
- {{/resume.basics}}
25
+ {{/resume.basics}}