-
Notifications
You must be signed in to change notification settings - Fork 1
/
mixins.pug
50 lines (47 loc) · 1.26 KB
/
mixins.pug
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
mixin timeline(entries)
each e in entries
.timeline-item
.timeline-item-image
img(src=`./images/${e.company.toLowerCase()}.webp` alt=`${e.company}'s logo`)
.timeline-item-content
.timeline-item-header
h3= e.company
span= e.title
span
if e.to
| From #{e.from} to #{e.to}
else
| Since #{e.from}
| in #{e.location}
small= e.locationType
.timeline-item-body
p= e.description
.timeline-item-footer
a(
href=e.url
title=`Visit ${e.company}'s website`
)
span(data-feather='link')
= new URL(e.url).hostname.replace('www.', '')
mixin iconList(entries)
each e in entries
li.icon-list-item
span(data-feather=e.icon)
if e.href
a(href=e.href)= e.text
else
= e.text
mixin languageList(languages)
ul.language-list
each l in languages
li
.language-list-name
img(src=`./images/${l.name.toLowerCase()}.webp`)
= l.name
span.language-list-proficiency= l.proficiency
mixin detailList(entries)
ul.detail-list
each e in entries
li
= e.diploma
span= e.details