aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorMantas <11616378+mistermantas@users.noreply.github.com>2019-05-09 21:20:38 +0300
committerMantas <11616378+mistermantas@users.noreply.github.com>2019-05-09 21:20:38 +0300
commitc62329ce102df226cc62b832232d6e9d528bd0df (patch)
treeb12fe89fdbf71fbb54c3442424d55ab5e5e5ccc3 /layouts
parent382d35c944c8f989669787639475da12c537fa9a (diff)
#27 - 1st working API kinda
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.html4
-rw-r--r--layouts/issues/single.json14
2 files changed, 17 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 51a09e8..48596df 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -2,7 +2,9 @@
<body class="default single">
<div class="contain">
<a href="{{ .Site.BaseURL }}">← {{ T "goBack" }} <em>{{ .Site.Title }}</em></a>
- <hr>
+
+ <div class="padding"></div>
+
{{ .Content }}
</div>
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