diff --git a/config.toml b/config.toml index 8fae1f8..44692d6 100644 --- a/config.toml +++ b/config.toml @@ -32,7 +32,7 @@ enableGitInfo = true [frontmatter] date = ["date", "publishDate", "lastmod"] - lastmod = ["lastmod", ":git", "date", "publishDate"] + lastmod = [":fileModTime", "lastmod", ":git", "publishDate"] publishDate = ["publishDate", "date"] expiryDate = ["expiryDate"] diff --git a/content/post/one-last-try.md b/content/post/one-last-try.md new file mode 100644 index 0000000..36c113e --- /dev/null +++ b/content/post/one-last-try.md @@ -0,0 +1,10 @@ +--- +title: "One Last Try" +date: 2021-04-11T22:21:59+01:00 +tags: ["shortcodes", "lastmod"] +topics: ["blogging"] +draft: true +--- + +How is this working, but not on any other pages? + diff --git a/content/post/testing-new-shortcodes.md b/content/post/testing-new-shortcodes.md index 04708d6..b697613 100644 --- a/content/post/testing-new-shortcodes.md +++ b/content/post/testing-new-shortcodes.md @@ -3,7 +3,7 @@ title: "Testing New Shortcodes" date: 2021-04-10T11:27:58+01:00 draft: false --- - + Today, I'm just testing out a few new Hugo shortcodes I added to the site. I've culled these from around the internet, and hacked together some of my own. You might find them useful, if you're doing static blogging yourself. You can find all the code on the repo for this site, **{{< newtab title="found here." url="https://gitea.gmgauthier.com/gmgauthier/personal-blog" >}}** As I do more and more blogging from the static site generator, this sort of thing will be more and more useful to me, at least. Here is a link to my legacy philosophy blog, that will open in a new tab. Out of the box, neither markdown, nor Hugo will do this: **{{< newtab title="Exiting The Cave" url="https://exitingthecave.com/" >}}** diff --git a/themes/blackburn/layouts/partials/post_meta.html b/themes/blackburn/layouts/partials/post_meta.html index abc6bb9..788f2c1 100644 --- a/themes/blackburn/layouts/partials/post_meta.html +++ b/themes/blackburn/layouts/partials/post_meta.html @@ -29,6 +29,7 @@ {{ end }} {{ end }} + {{ .Lastmod }} {{ end }} \ No newline at end of file