Skip to content

Commit e6b0224

Browse files
author
p4irin
committed
Pass email and phone seperately
1 parent fa18a42 commit e6b0224

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

_data/data.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,11 +267,12 @@ skills:
267267
recommendations:
268268
title: Recommendations
269269
list:
270-
- person: p4irin
271-
contact: "phone:012 345 6789, email:[email protected]"
270+
- person: John Doe
271+
272+
phone: 012 345 6789
272273
role: General Director at example.com
273274
recommendation: |
274-
sharu725 is a super employee!
275+
Alan Doe is a super employee!
275276
276277
footer: >
277278
Designed with <i class="fas fa-heart"></i> by <a href="http://themes.3rdwavemedia.com" target="_blank" rel="nofollow">Xiaoying Riley</a>

_includes/recommendations.html

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,23 @@ <h2 class="section-title">
1616

1717
<div class="upper-row">
1818
<h3 class="recommendation">{{ recommendation.person }}</h3>
19-
<div class="recommendation-contact">{{ recommendation.contact }}</div>
19+
{% if recommendation.email %}
20+
<div class="recommendation-contact">
21+
<nobr>
22+
<i class="fas fa-envelope"></i>
23+
<a class="recommendation-contact" href="mailto:{{recommendation.email}}">{{ recommendation.email }}</a>
24+
</nobr>
25+
</div>
26+
{% endif %}
27+
{% if recommendation.phone %}
28+
<div class="recommendation-contact">
29+
<nobr>
30+
&nbsp;
31+
<i class="fas fa-phone"></i>
32+
<a class="recommendation-contact" href="tel:{{recommendation.phone}}">{{ recommendation.phone }}</a>
33+
</nobr>
34+
</div>
35+
{% endif %}
2036
</div><!--//upper-row-->
2137

2238
<div class="recommendation-role">{{ recommendation.role }}</div>

print.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@
1717
{% include publications.html %}
1818

1919
{% include skills.html %}
20+
21+
{% include recommendations.html %}

0 commit comments

Comments
 (0)