diff options
| author | Zach Berwaldt <17715430+zberwaldt@users.noreply.github.com> | 2023-10-20 22:58:33 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-20 22:58:33 -0400 |
| commit | c516745d0dc2c6a51777ef00ef116c1b26e95ec7 (patch) | |
| tree | adcce31c689d3e63ab3ea8bd36f9ac384eca4cad /layouts/partials/updated_posts.html | |
| parent | b34e09f8fe1011963934dbf40dc92f0b258592ca (diff) | |
| parent | 6bfd84ae2c7aad006c3bc84cdce9aebf894cbe62 (diff) | |
Develop
Diffstat (limited to 'layouts/partials/updated_posts.html')
| -rw-r--r-- | layouts/partials/updated_posts.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/layouts/partials/updated_posts.html b/layouts/partials/updated_posts.html new file mode 100644 index 0000000..7010a5b --- /dev/null +++ b/layouts/partials/updated_posts.html | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | {{ $lastBuildTime := time "2021-09-08T12:51:38-0400" }} | ||
| 2 | {{ $updatedPosts := slice }} | ||
| 3 | |||
| 4 | {{ range .Site.Pages }} | ||
| 5 | {{ if .Lastmod.After $lastBuildTime }} | ||
| 6 | <li>{{ .Title }} - {{ .Lastmod }}</li> | ||
| 7 | {{ end }} | ||
| 8 | {{ end }} | ||
| 9 | |||
| 10 | <h2>Updated Posts:</h2> | ||
| 11 | <ul> | ||
| 12 | {{ range $updatedPosts }} | ||
| 13 | <li>{{ . }}</li> | ||
| 14 | {{ end }} | ||
| 15 | </ul> | ||
| 16 | |||
| 17 | {{ $currentTime := now.UTC }} | ||
