diff options
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 }} | ||
