-
-
Notifications
You must be signed in to change notification settings - Fork 580
Expand file tree
/
Copy pathexperience.html
More file actions
124 lines (119 loc) · 8.08 KB
/
Copy pathexperience.html
File metadata and controls
124 lines (119 loc) · 8.08 KB
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
118
119
120
121
122
123
124
{{ if .Site.Params.experience.enable | default false }}
<section id="experience" class="py-5">
<div class="container">
<h3 class="text-center">{{ .Site.Params.experience.title | default "Experience" }}</h3>
<div class="row justify-content-center">
<div class="col-sm-12 col-md-8 col-lg-8 py-5">
<div class="experience-container px-3 pt-2">
<ul class="nav nav-pills mb-2 bg-transparent primary-font" id="pills-tab" role="tablist">
{{ range $index, $element := .Site.Params.experience.items }}
{{ $firstJobDate := "" }}
{{ if .jobs }}
{{ $firstJobDate = (index .jobs 0).date }}
{{ end }}
{{ $tabId := partial "helpers/sanitizeId.html" (print .company "-" $firstJobDate) }}
<li class="nav-item px-1 bg-transparent" role="presentation">
<div
class="nav-link {{ if (eq $index 0) }}active{{ end }} bg-transparent"
aria-selected="true"
role="tab"
data-bs-toggle="pill"
id='{{ $tabId }}-tab'
data-bs-target='#pills-{{ $tabId }}'
aria-controls='{{ $tabId }}'
>
{{ .company }}
</div>
</li>
{{ end }}
</ul>
<div class="tab-content pb-3 bg-transparent primary-font" id="pills-tabContent">
{{ range $index, $element := .Site.Params.experience.items }}
{{ $company := .company }}
{{ $companyUrl := .companyUrl }}
{{ $firstJobDate := "" }}
{{ if .jobs }}
{{ $firstJobDate = (index .jobs 0).date }}
{{ end }}
{{ $tabId := partial "helpers/sanitizeId.html" (print .company "-" $firstJobDate) }}
<div
class="tab-pane fade bg-transparent {{ if eq $index 0 }}show active{{ end }}"
role="tabpanel"
id='pills-{{ $tabId }}'
aria-labelledby='{{ $tabId }}-tab'
>
{{ range $jobIdx, $job := .jobs }}
<div>
<div class="d-flex align-items-center justify-content-between">
<div>
<span class="{{ if eq $jobIdx 0 }}h4{{ else }}h5{{ end }}">{{ $job.name }}</span>
{{ if $job.info.content }}
<span class="p-2">
<span
style="cursor: pointer;"
data-bs-toggle="tooltip"
data-bs-placement="top"
data-bs-original-title={{$job.info.content}}
>
<i class="fas fa-info-circle fa-xs"></i>
</span>
</span>
{{ end }}
{{ if eq $jobIdx 0 }}
<small>-</small>
<a href="{{ $companyUrl }}" target="_blank">{{ $company }}</a>
{{ end }}
</div>
<div class="d-block">
<small>{{ $job.date }}</small>
{{ if $job.featuredItems }}
<div class="featuredLink list-inline d-flex justify-content-end align-items-center">
{{ range $job.featuredItems.fontAwesomeIcons }}
<div class="list-inline-item">
<a
href="{{ .url }}"
target="_blank"
{{ if .tooltip}}
data-bs-toggle="tooltip"
data-bs-placement="top"
data-bs-original-title={{.tooltip}}
{{ end }}
>
<i class="{{ .icon }}"></i>
</a>
</div>
{{ end }}
{{ range $job.featuredItems.customIcons }}
<div class="list-inline-item">
<a
class="d-flex align-items-center justify-content-between"
href="{{ .url }}"
target="_blank"
{{ if .tooltip}}
data-bs-toggle="tooltip"
data-bs-placement="top"
data-bs-original-title={{.tooltip}}
{{ end }}
>
<img src="{{ .icon }}">
</a>
</div>
{{ end }}
</div>
{{ end }}
</div>
</div>
<div class="pb-2 pb-3">
{{ $job.content | markdownify}}
</div>
</div>
{{ end }}
</div>
{{ end }}
</div>
</div>
</div>
</div>
</div>
</section>
{{ end }}