diff options
Diffstat (limited to 'layouts/partials/sections/projects.html')
-rw-r--r-- | layouts/partials/sections/projects.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/layouts/partials/sections/projects.html b/layouts/partials/sections/projects.html new file mode 100644 index 0000000..ab4b497 --- /dev/null +++ b/layouts/partials/sections/projects.html @@ -0,0 +1,19 @@ +{{ with .Site.GetPage "/projects" }} +<h3>Projects</h3> +{{ range sort (.Pages) "Params.start_date" "desc" }} +<table> + <tbody> + <tr> + <td><strong>{{ .Title }} </strong><span>|</span> + <em>{{ range $i, $e := .Params.tags -}}{{- if $i -}}, {{ end -}}{{ . }}{{- end -}}</em> + </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> + </tbody> +</table> +{{ .Content }} +{{ end }} +{{ end }}
\ No newline at end of file |