Skip to content

Commit 33c00a3

Browse files
authored
Merge pull request #424 from p4irin/recommendations
Add recommendations section
2 parents 2625e42 + e6b0224 commit 33c00a3

File tree

5 files changed

+70
-0
lines changed

5 files changed

+70
-0
lines changed

_data/data.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,5 +264,15 @@ skills:
264264
- name: Sketch & Photoshop
265265
level: 60%
266266

267+
recommendations:
268+
title: Recommendations
269+
list:
270+
- person: John Doe
271+
272+
phone: 012 345 6789
273+
role: General Director at example.com
274+
recommendation: |
275+
Alan Doe is a super employee!
276+
267277
footer: >
268278
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: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{% assign recommendations = site.data.data.recommendations %}
2+
{% if recommendations %}
3+
<section class="section recommendations-section">
4+
<h2 class="section-title">
5+
<span class="fa-stack fa-xs">
6+
<i class="fas fa-circle fa-stack-2x"></i>
7+
<i class="fas fa-medal fa-stack-1x fa-inverse"></i>
8+
</span>
9+
{{ recommendations.title }}
10+
</h2>
11+
12+
{% for recommendation in recommendations.list %}
13+
<div class="item">
14+
15+
<div class="meta">
16+
17+
<div class="upper-row">
18+
<h3 class="recommendation">{{ recommendation.person }}</h3>
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 %}
36+
</div><!--//upper-row-->
37+
38+
<div class="recommendation-role">{{ recommendation.role }}</div>
39+
40+
</div><!--//meta-->
41+
42+
{% if recommendation.recommendation %}
43+
<div class="details">
44+
{{ recommendation.recommendation | markdownify }}
45+
</div><!--//details-->
46+
{% endif %}
47+
48+
</div><!--//item-->
49+
{% endfor %}
50+
51+
</section><!--//section-->
52+
{% endif %}
53+

_sass/_base.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ p {
178178
}
179179

180180
.experiences-section,
181+
.recommendations-section,
181182
.educations-section {
182183
.item {
183184
margin-bottom: 30px;
@@ -191,6 +192,7 @@ p {
191192
display: flex;
192193
}
193194
.job-title,
195+
.recommendation,
194196
.degree,
195197
.cert-title{
196198
color: $text-color;
@@ -209,6 +211,8 @@ p {
209211
flex: 25%;
210212
}
211213
.company,
214+
.recommendation-contact,
215+
.recommendation-role,
212216
.university,
213217
.cert-org {
214218
margin-bottom: 10px;

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@
2121

2222
{% include skills.html %}
2323

24+
{% include recommendations.html %}

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)