2022-08-02 14:05:56 -04:00
|
|
|
{{ define "main" }}
|
2022-08-03 13:38:47 -04:00
|
|
|
<h2>{{ .Title }}</h2>
|
2022-08-02 14:05:56 -04:00
|
|
|
|
2022-08-03 13:38:47 -04:00
|
|
|
{{ .Content }}
|
2022-08-29 10:36:22 -04:00
|
|
|
|
|
|
|
<table class="w-full table-auto mt-4">
|
|
|
|
<tr>
|
|
|
|
{{ if in .File.Dir "projects" }}
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Description</th>
|
|
|
|
<th>Year Created</th>
|
|
|
|
{{ else }}
|
|
|
|
<th>Title</th>
|
|
|
|
<th>Summary</th>
|
|
|
|
<th>Date</th>
|
|
|
|
{{ end }}
|
|
|
|
</tr>
|
|
|
|
{{ range .Data.Pages.ByDate.Reverse }}
|
|
|
|
<tr>
|
|
|
|
<td class="border-t"><a href="{{ .RelPermalink }}">{{ .Title }}</a></td>
|
|
|
|
|
|
|
|
<td class="border-t">
|
|
|
|
{{ .Summary }}
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td class="border-t">
|
|
|
|
{{ if in .File.Dir "projects" }}
|
2022-08-29 10:43:13 -04:00
|
|
|
<time datetime='{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}'></time>{{ .Date.Format " 2006"}}</time>
|
2022-08-29 10:36:22 -04:00
|
|
|
{{ else }}
|
2022-08-29 10:43:13 -04:00
|
|
|
<time datetime='{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}'>{{ .Date.Format "Jan 2, 2006"}}</time>
|
2022-08-29 10:36:22 -04:00
|
|
|
{{ end }}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{ end }}
|
|
|
|
</table>
|
2022-08-02 14:05:56 -04:00
|
|
|
{{ end }}
|