aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--exampleSite/config.yml13
-rw-r--r--exampleSite/content/issues/2018-05-25-us-east-conn-issues.md1
-rw-r--r--layouts/_default/single.html4
-rw-r--r--layouts/issues/single.json14
4 files changed, 31 insertions, 1 deletions
diff --git a/exampleSite/config.yml b/exampleSite/config.yml
index 5df05d8..8e88fb6 100644
--- a/exampleSite/config.yml
+++ b/exampleSite/config.yml
@@ -263,3 +263,16 @@ preserveTaxonomyNames: true
taxonomies:
affected: affected
+
+outputs:
+ page:
+ - html
+ - json
+ section:
+ - html
+ - json
+ - rss
+ home:
+ - html
+ - json
+ - rss \ No newline at end of file
diff --git a/exampleSite/content/issues/2018-05-25-us-east-conn-issues.md b/exampleSite/content/issues/2018-05-25-us-east-conn-issues.md
index 524035b..8178189 100644
--- a/exampleSite/content/issues/2018-05-25-us-east-conn-issues.md
+++ b/exampleSite/content/issues/2018-05-25-us-east-conn-issues.md
@@ -8,6 +8,7 @@ severity: down
affected:
- API
- Media Proxy
+ - Gateway
section: issue
---
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