From c62329ce102df226cc62b832232d6e9d528bd0df Mon Sep 17 00:00:00 2001 From: Mantas <11616378+mistermantas@users.noreply.github.com> Date: Thu, 9 May 2019 21:20:38 +0300 Subject: #27 - 1st working API kinda --- layouts/issues/single.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 layouts/issues/single.json (limited to 'layouts/issues') diff --git a/layouts/issues/single.json b/layouts/issues/single.json new file mode 100644 index 0000000..6287288 --- /dev/null +++ b/layouts/issues/single.json @@ -0,0 +1,14 @@ + +{ + "section": "{{ .Section }}", + "title": "{{ .Title }}", + "created_at": "{{ .Date }}", + "severity": "{{ .Params.severity }}", + "resolved": "{{ .Params.resolved }}", + "resolved_at": "{{ .Params.resolvedWhen }}", + "affected": [{{ range $i, $e := .Params.Affected }}{{ if $i }}, {{ end }}'{{ . }}'{{ end }}], + + "body": {{ jsonify .Content }}, + + "filename": "{{ .File.LogicalName }}" +} \ No newline at end of file -- cgit v1.2.3-70-g09d2