diff options
author | Mantas Vilčinskas <hi@mnts.lt> | 2021-02-24 16:29:44 +0200 |
---|---|---|
committer | Mantas Vilčinskas <hi@mnts.lt> | 2021-02-24 16:29:44 +0200 |
commit | 548fcb9e38409902e12d117c745297e7637a7e67 (patch) | |
tree | e9a96ab63d9b41ac1c469587e5b6687909761911 /layouts/issues | |
parent | 96477340dd7d7127ce5a6190e78974ad7a895bea (diff) |
API updates, lastmod, NCMS/default config changes, version to 0.80
Diffstat (limited to 'layouts/issues')
-rw-r--r-- | layouts/issues/single.html | 17 | ||||
-rw-r--r-- | layouts/issues/single.json | 8 |
2 files changed, 20 insertions, 5 deletions
diff --git a/layouts/issues/single.html b/layouts/issues/single.html index 5761477..402c794 100644 --- a/layouts/issues/single.html +++ b/layouts/issues/single.html @@ -13,9 +13,24 @@ </div> <div class="contain"> - {{ .Render "issue" }} + {{ .Render "issue" }} </div> + + {{ if .Site.Params.enableLastMod }} + <div class="contain center"> + <p>{{ T "lastChecked" }}: + {{ if .Site.Params.dateFormat }} + {{ .Lastmod.UTC.Format .Site.Params.dateFormat }} + {{ else }} + {{ .Lastmod.Format "January 2, 2006 at 3:04 PM" }} + {{ end }} + </p> + </div> + {{ end }} + + + {{ partial "js" . }} {{ partial "footer" . }} diff --git a/layouts/issues/single.json b/layouts/issues/single.json index 36b0f67..fb78ee7 100644 --- a/layouts/issues/single.json +++ b/layouts/issues/single.json @@ -2,12 +2,12 @@ "is": "issue", "title": "{{ .Title }}", "createdAt": "{{ .Date }}", + "lastMod": "{{ .Lastmod }}", "permalink": "{{ .Permalink }}", "severity": "{{ .Params.severity }}", - "resolved": "{{ .Params.resolved }}", - "informational": "{{ .Params.informational }}", + "resolved": {{ if .Params.resolved }}true{{ else }}false{{ end }}, + "informational": {{ if .Params.informational }}true{{ else }}false{{ end }}, "resolvedAt": "{{ .Params.resolvedWhen }}", "affected": [{{ range $i, $e := .Params.Affected }}{{ if $i }}, {{ end }}"{{ . }}"{{ end }}], - "filename": "{{ .File.LogicalName }}", - "body": {{ jsonify .Content }} + "filename": "{{ .File.LogicalName }}" }
\ No newline at end of file |