/
cv.html
65 lines (53 loc) · 2.89 KB
/
cv.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{% assign cv = site.data.cv %}
{% assign config = page.cv %}
<div class="cv">
<!-- generated by Kamila's YAML CV: https://github.com/anotherkamila/yamlCV -->
<style scoped>
.cv p { margin: 0; }
.cv h1, h2 { font-weight: normal; }
.cv-photo { height: 76px; float: left; margin: 0 1em 1rem 0; }
.cv-basic-info-item { margin-right: 1em; white-space: nowrap; }
.cv-basic-info { clear: both; }
.cv-section-title { font-size: 1.75rem; margin: 1.5rem 0 1rem 0; }
.cv-item-title { font-weight: bold; }
.cv-item-content { padding-left: 40px; }
.cv-item-content > ul { padding: 0; margin: 0; }
.cv-item-content em { color: #636c72; margin-left: 0.5rem; }
{% unless config.no_lines %}
.cv-section-header { position: relative; }
.cv-section-title { font-style: italic; display: inline-block; background: #fff; padding-right: 1.2rem; }
.cv-section-title:after { position: absolute; top: 2.4rem; z-index: -1; content: ''; display: block; width: 100%; border-top: 1px solid; }
{% endunless %}
</style>
{% if config.download_links %}
<span style="float: right"><i class="fa fa-download"></i>
{% for item in config.download_links %} <a title="Download as {{item[0]}}" href="{{item[1]}}">{{item[0]}}</a>{% endfor %}
</span>
{% endif %}
<header>
<img class="cv-photo" src="{{cv.photo}}" alt="my photo" />
<h1 class="cv-name">{{cv.name}}</h1>
<span class="text-muted">{{cv.tagline}}</span>
</header>
<section class="cv-basic-info">
<span class="cv-basic-info-item"><i class="fa fa-envelope"></i> <a href="mailto:{{cv.email}}">{{cv.email}}</a></span>
<span class="cv-basic-info-item"><i class="fa fa-phone"></i> {{cv.phone}}</span>
<span class="cv-basic-info-item"><i class="fa fa-mouse-pointer"></i> <a href="{{cv.website}}">{{cv.website}}</a></span>
<span class="cv-basic-info-item"><i class="fa fa-map-marker"></i> {{cv.location}}</span>
</section>
{% for sec_id in cv.sections %}
{% assign section = cv.data[sec_id] %}
<section class="cv-section" id="{{sec_id}}">
<header class="cv-section-header"><h2 class="text-primary cv-section-title">{{section.title}}</h2></header>
{{ section.text | markdownify }}
{% for item in section.items %}
{% for keyvalue in item %} {%comment%} trick to get the arbitrarily-named key {%endcomment%}
<div class="cv-item">
<span class="cv-item-title">{{keyvalue[0]}}:</span>
<div class="cv-item-content">{{keyvalue[1] | markdownify}}</div>
</div>
{% endfor %}
{% endfor %}
</section>
{% endfor %}
</div><!-- .cv -->