testing lastmod and gitinfo

This commit is contained in:
Greg Gauthier 2021-04-11 21:52:15 +01:00
parent 16f7784330
commit b235333f73
5 changed files with 22 additions and 5 deletions

View File

@ -1,6 +1,8 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
lastmod: {{ now }}
draft: true
tags: []
topics: []
---

View File

@ -12,6 +12,7 @@ paginate = 10
PygmentsCodeFences = true
PygmentsStyle = "tango"
enableInlineShortcodes = true
enableGitInfo = true
[indexes]
tag = "tags"
@ -28,7 +29,13 @@ enableInlineShortcodes = true
[markup]
[markup.goldmark.renderer]
unsafe= true
[frontmatter]
date = ["date", "publishDate", "lastmod"]
lastmod = ["lastmod", ":git", "date", "publishDate"]
publishDate = ["publishDate", "date"]
expiryDate = ["expiryDate"]
[menu]
[[menu.main]]
name = "Home"

View File

@ -110,4 +110,3 @@ Request/Response headers:
That's it. I hope this has been helpful. Incidentally, if you want to experiment with the code yourself, the repo is available **{{< newtab title="right here." url="https://gitea.gmgauthier.com/gmgauthier/soapmock" >}}** Enjoy!
Last Change: {{< time.inline >}}{{ now }}{{< /time.inline >}}

View File

@ -0,0 +1,11 @@
---
title: "Something Different for a Change3"
date: 2021-04-11T21:48:01+01:00
lastmod: 2021-04-11 21:48:01.362115 +0100 BST m=+0.047984696
draft: true
tags: []
topics: []
---
{{ .Lastmod }}
{{ .GitInfo.AuthorDate }}

View File

@ -61,5 +61,3 @@ var y = 6;
var z = x + y;
document.getElementById("demo").innerHTML = "The value of z is: " + z;
```
Latest Build Time: {{< time.inline >}}{{ now }}{{< /time.inline >}}