diff options
Diffstat (limited to 'layouts/partials/sections/education.html')
-rw-r--r-- | layouts/partials/sections/education.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/layouts/partials/sections/education.html b/layouts/partials/sections/education.html new file mode 100644 index 0000000..f32f6ba --- /dev/null +++ b/layouts/partials/sections/education.html @@ -0,0 +1,21 @@ +{{ with .Site.GetPage "/education" }} +<h3>Education</h3> +<table> + <tbody> + {{ range sort (.Pages) "Params.end_date" "desc" }} + <tr> + <td><strong>{{ .Title }}</strong></td> + <td style="text-align: right;">{{ with .Params.location}}{{ . }}{{ end }}</td> + </tr> + <tr> + <td><em>{{ with .Params.degree}}{{ . }}{{ end }}</em> + </td> + <td style="text-align: right;"><em> + {{ with .Params.start_date }}{{ time.Format "Jan 2006" . }}{{ end }} – + {{ with .Params.end_date }}{{ time.Format "Jan 2006" . }}{{ else }}{{ "Present" }}{{ end }}</em> + </td> + </tr> + {{ end }} + </tbody> +</table> +{{ end }}
\ No newline at end of file |