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