blob: 44c6283ffe97b22a8093e97ffbe24775170eec7b (
plain)
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
|
{{ $isOnSide := false }}
{{ range .Params.side }}
{{ if eq .feature "education" }}
{{ $isOnSide = true }}
{{ end }}
{{ end }}
{{ range .Data.education }}
<div class="item">
{{- if and $.Params.education.location.show .location -}}
{{ if $isOnSide }}
<h2 class="item-title">{{ .university }}</h2>
<span>{{ .location }}</span><br>
{{- else -}}
<div class="flex-row">
<h2 class="item-title">{{ .university }}</h2>
<span class="soft-color">{{ .location }}</span>
</div>
{{- end -}}
{{- else -}}
<h2 class="item-title">{{ .university }}</h2>
{{- end -}}
<span>{{ .name }}</span><br>
{{ $useFontAwesome := $.Params.education.useFontAwesome | default $.Params.useFontAwesome }}
{{ $noExternalIcon := not ($.Params.education.externalLinkIcon | default $.Params.externalLinkIcon) }}
{{- if .more -}}
{{- if .link -}}
{{- if $useFontAwesome -}}
<span><a class="no-external-icon" href="{{ .link }}">{{ .more }}</a></span>
<i class="fas fa-link"></i><br>
{{- else -}}
<span><a class="{{ if $noExternalIcon }}no-external-icon{{ end }}" href="{{ .link }}">{{ .more }}</a></span><br>
{{- end -}}
{{- else -}}
<span>{{ .more }}</span><br>
{{- end -}}
{{- end -}}
<span>{{ .date }}{{ if .gpa }} | GPA: {{ .gpa }}{{ end }}</span>
{{ if .details }}
{{- partial "markdown" .details }}
{{ end }}
</div>
{{ end }}
|