blob: 03b104c299882ed8a9cc3f193a82f61ac261759e (
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
|
{{ with .Site.GetPage "/education" }}
<h3>Education</h3>
<table>
<tbody>
{{ range sort (.Pages) "Params.end_date" "desc" }}
<tr>
<td><strong>{{ .Title }}</strong></td>
<td class="align-right">{{ with .Params.location}}{{ . }}{{ end }}</td>
</tr>
<tr class="subtitle">
<td><em>{{ with .Params.degree}}{{ . }}{{ end }}</em>
</td>
<td class="align-right"><em>
{{ 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>
</td>
</tr>
{{ end }}
</tbody>
</table>
{{ end }}
|