testing lastmod and gitinfo
This commit is contained in:
parent
16f7784330
commit
b235333f73
@ -1,6 +1,8 @@
|
||||
---
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
date: {{ .Date }}
|
||||
lastmod: {{ now }}
|
||||
draft: true
|
||||
tags: []
|
||||
topics: []
|
||||
---
|
||||
|
||||
|
@ -12,6 +12,7 @@ paginate = 10
|
||||
PygmentsCodeFences = true
|
||||
PygmentsStyle = "tango"
|
||||
enableInlineShortcodes = true
|
||||
enableGitInfo = true
|
||||
|
||||
[indexes]
|
||||
tag = "tags"
|
||||
@ -29,6 +30,12 @@ enableInlineShortcodes = true
|
||||
[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"
|
||||
|
@ -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 >}}
|
||||
|
11
content/post/something-different-for-a-change3.md
Normal file
11
content/post/something-different-for-a-change3.md
Normal 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 }}
|
@ -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 >}}
|
||||
|
Loading…
Reference in New Issue
Block a user