forked from alshedivat/al-folio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cv.liquid
117 lines (114 loc) · 3.9 KB
/
cv.liquid
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
---
layout: default
---
{% unless site.data.resume %}
<div class="post">
<header class="post-header">
<h1 class="post-title">
{{ page.title }}
{% if page.cv_pdf %}
<a
href="{{ page.cv_pdf | prepend: 'assets/pdf/' | relative_url}}"
target="_blank"
rel="noopener noreferrer"
class="float-right"
><i class="fa-solid fa-file-pdf"></i
></a>
{% endif %}
</h1>
{% if page.description %}
<p class="post-description">{{ page.description }}</p>
{% endif %}
</header>
<article>
<div class="cv">
{% for entry in site.data.cv %}
<a class="anchor" id="{{ entry.title }}"></a>
<div class="card mt-3 p-3">
<h3 class="card-title font-weight-medium">{{ entry.title }}</h3>
<div>
{% if entry.type == 'list' %}
{% include cv/list.liquid %}
{% elsif entry.type == 'map' %}
{% include cv/map.liquid %}
{% elsif entry.type == 'nested_list' %}
{% include cv/nested_list.liquid %}
{% elsif entry.type == 'time_table' %}
{% include cv/time_table.liquid %}
{% elsif entry.type == 'list_groups' %}
{% include cv/list_groups.liquid %}
{% else %}
{{ entry.contents }}
{% endif %}
</div>
</div>
{% endfor %}
</div>
</article>
</div>
{% else %}
<div class="post">
<header class="post-header">
<h1 class="post-title">
{{ page.title }}
{% if page.cv_pdf %}
<a
href="{{ page.cv_pdf | prepend: 'assets/pdf/' | relative_url}}"
target="_blank"
rel="noopener noreferrer"
class="float-right"
><i class="fa-solid fa-file-pdf"></i
></a>
{% endif %}
</h1>
{% if page.description %}
<p class="post-description">{{ page.description }}</p>
{% endif %}
</header>
<article>
<div class="cv">
{% for data in site.data.resume %}
{% if site.jsonresume and site.jsonresume.size > 0 %}
{% unless site.jsonresume contains data[0] %}
{% continue %}
{% endunless %}
{% endif %}
{% if data[0] == 'meta' or data[1].size == 0 %} {% continue %} {% endif %}
<a class="anchor" id="{{ data[0] }}"></a>
<div class="card mt-3 p-3">
<h3 class="card-title font-weight-medium">{{ data[0] | capitalize }}</h3>
<div>
{% case data[0] %}
{% when 'basics' %}
{% include resume/basics.liquid %}
{% when 'education' %}
{% include resume/education.liquid %}
{% when 'work' %}
{% include resume/work.liquid %}
{% when 'volunteer' %}
{% include resume/volunteer.liquid %}
{% when 'projects' %}
{% include resume/projects.liquid %}
{% when 'awards' %}
{% include resume/awards.liquid %}
{% when 'skills' %}
{% include resume/skills.liquid %}
{% when 'publications' %}
{% include resume/publications.liquid %}
{% when 'languages' %}
{% include resume/languages.liquid %}
{% when 'interests' %}
{% include resume/interests.liquid %}
{% when 'certificates' %}
{% include resume/certificates.liquid %}
{% when 'references' %}
{% include resume/references.liquid %}
{% else %}
{% endcase %}
</div>
</div>
{% endfor %}
</div>
</article>
</div>
{% endunless %}