~williamvds/website

ref: 5012d685abe8ed7b9b2d7898d72fc8ddd27a2f4c website/templates/cv.html -rw-r--r-- 1.3 KiB
5012d685williamvds cv: add more spacing between links, sourcehut icon 3 months ago
                                                                                
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
{% extends "page.html" %}
{% import "macros.html" as macros %}

{% block header %}
	{{ macros::nav(path="/" ~ page.path) }}
	<h1 id=name>{{config.title}}</h1>
	<h2 id=headline>{{config.extra.headline}}</h2>
	{% if config.extra.print %}
		<div id=address>
			<span class=iconify data-icon=mdi-home></span>
			{{config.extra.address}}
		</div>
	{% endif %}
	<div id=contact>
		{% for k, v in config.extra.contacts %}
			{% if v.printOnly and not config.extra.print %}
				{% continue %}
			{% endif %}
			{{ macros::iconlink(
				icon = k,
				text = v.value,
				url  = v.url ~ v.value
			) }}
		{% endfor %}
	</div>
	<div id=accounts>
		{% for k, a in config.extra.accounts %}
			{% if a.filter is defined and a.filter is not containing("cv") %}
				{% continue %}
			{% endif %}
			{{ macros::iconlink(
				icon  = a.icon,
				text  = a.name,
				url   = a.url ~ config.extra.username
			) }}
		{% endfor %}
	</div>
	<div id=links>
		{{ macros::iconlink(
			icon  = "download",
			text  = "Download as PDF",
			url   = "/cv.pdf",
			class = "no-print smaller"
		) }}
	</div>
{% endblock header %}

{% block content %}
	<main>
		{{page.content | safe}}

		{% if config.extra.print %}
			<h1>
				<span class=iconify data-icon=mdi-file-document></span>
				References
			</h1>
			Available upon request
		{% endif %}
	</main>
{% endblock content %}