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

32 lines
1.1 KiB
HTML
Raw Normal View History

2023-11-28 23:10:01 +03:00
{{ with .Site.GetPage "/projects" }}
2023-11-23 22:27:56 +03:00
<h3>Projects</h3>
2023-12-02 23:38:30 +03:00
{{ range .Pages }}
2023-11-23 22:27:56 +03:00
<table>
<tbody>
<tr>
2023-11-28 23:10:01 +03:00
<td><strong>{{ .Title }} </strong><span>|</span>
<em>{{ range $i, $e := .Params.tags -}}{{- if $i -}}, {{ end -}}{{ . }}{{- end -}}</em>
2023-11-23 22:27:56 +03:00
</td>
2023-12-02 23:21:28 +03:00
<td class="align-right">
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 }}
2023-11-28 23:52:43 +03:00
</td>
2023-11-23 22:27:56 +03:00
</tr>
</tbody>
</table>
2023-11-28 23:10:01 +03:00
{{ .Content }}
{{ end }}
{{ end }}