-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.html.jinja
51 lines (42 loc) · 1.23 KB
/
theme.html.jinja
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
{% from "i18n/EN.jinja" import i18n %}
{%- macro format_date(date) -%}
{{ strptime(date, '%Y-%m-%d').strftime('%-m/%Y')}}
{%- endmacro -%}
{%- macro format_date_range(exp) -%}
{{ format_date(exp.startDate) }} – {% if exp.endDate %}{{ format_date(exp.endDate) }}{% else %}{{ i18n.today }}{% endif %}
{%- endmacro -%}
<body>
<header>
{% include "components/aside.html.jinja" %}
<div class="top_headings">
<h1>{{ i18n.title }}</h1>
<h2>{{ basics.name }}</h2>
</div>
</header>
<main>
{% if work %}
{% include "components/work.html.jinja" %}
{% endif %}
{% if education %}
{% include "components/education.html.jinja" %}
{% endif %}
{% if certificates %}
{% include "components/certificates.html.jinja" %}
{% endif %}
{% if languages %}
{% include "components/languages.html.jinja" %}
{% endif %}
{% if skills %}
{% include "components/skills.html.jinja" %}
{% endif %}
</main>
<footer>
<ul>
{% for profile in basics.profiles %}
{% if profile.network|lower == "LinkedIn"|lower or profile.network|lower == "XING"|lower %}
<li>{{ profile.network }}: <a href="{{ profile.url }}">{{ profile.url | replace("https://www.", "") }}</a></li>
{% endif %}
{% endfor %}
</ul>
</footer>
</body>