1
0
hugos-resume/layouts/partials/sections/education.html

34 lines
1.2 KiB
HTML
Raw Permalink Normal View History

2023-11-30 00:06:46 +03:00
{{ with .Site.GetPage "/education" }}
2023-11-23 23:23:26 +03:00
<h3>Education</h3>
2023-11-29 23:31:30 +03:00
<table>
<tbody>
2023-11-30 00:06:46 +03:00
{{ range sort (.Pages) "Params.end_date" "desc" }}
2023-11-29 23:31:30 +03:00
<tr>
2023-11-30 00:06:46 +03:00
<td><strong>{{ .Title }}</strong></td>
2023-12-02 23:21:28 +03:00
<td class="align-right">{{ with .Params.location}}{{ . }}{{ end }}</td>
2023-11-29 23:31:30 +03:00
</tr>
2023-12-05 00:02:24 +03:00
<tr class="subtitle">
2023-11-30 00:06:46 +03:00
<td><em>{{ with .Params.degree}}{{ . }}{{ end }}</em>
</td>
2023-12-02 23:21:28 +03:00
<td class="align-right"><em>
2023-12-03 23:00:02 +03:00
{{ with .Params.start_date }}
{{ if le ( len (time.Format "January" .)) 4}}
{{ time.Format "January 2006" . }}
{{ else }}
{{ time.Format "Jan. 2006" . }}
{{ end }}
{{ end }}
{{ with .Params.end_date }}
{{ if le ( len (time.Format "January" .)) 4}}
{{ time.Format "January 2006" . }}
{{ else }}
{{ time.Format "Jan. 2006" . }}
{{ end }}
{{ else }}{{ "Present" }}
{{ end }}</em>
2023-11-29 23:31:30 +03:00
</td>
</tr>
2023-11-30 00:06:46 +03:00
{{ end }}
2023-11-29 23:31:30 +03:00
</tbody>
2023-11-30 00:06:46 +03:00
</table>
{{ end }}