summaryrefslogtreecommitdiff
path: root/site
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-08-17 15:39:08 -0300
committerEuAndreh <eu@euandre.org>2020-08-17 15:39:08 -0300
commit37109100c380814e21e5d7cc244f1d17e5b8b638 (patch)
treed144b91fc8feb4108d2ae00ea0b91e2677caa76c /site
parentpublic-inbox.html: Simplify page footer. (diff)
downloadeuandre.org-37109100c380814e21e5d7cc244f1d17e5b8b638.tar.gz
euandre.org-37109100c380814e21e5d7cc244f1d17e5b8b638.tar.xz
assert-content.sh: Check that declared layout matches the folder
Diffstat (limited to '')
-rw-r--r--site.json8
1 files changed, 4 insertions, 4 deletions
diff --git a/site.json b/site.json
index 3e544ac..2a27e8d 100644
--- a/site.json
+++ b/site.json
@@ -15,7 +15,7 @@
"url": "{{ post.url }}",
"lang": "{{ post.lang }}",
"ref": "{{ post.ref }}",
- "layout": "post",
+ "layout": "{{ post.layout }}",
"content": {{ post.content | strip_html | jsonify }}
}{% unless forloop.last %},{% endunless %}
{% endfor %}
@@ -34,7 +34,7 @@
"lang": "{{ page.lang }}",
"ref": "{{ page.ref }}",
"plaintext": "{{ page.plaintext }}",
- "layout": "page",
+ "layout": "{{ page.layout }}",
"content": {{ page.content | strip_html | jsonify }}
}{% unless forloop.last %},{% endunless %}
{% endfor %}
@@ -53,7 +53,7 @@
"url": "{{ pastebin.url }}",
"lang": "{{ pastebin.lang }}",
"ref": "pastebin-ref",
- "layout": "pastebin",
+ "layout": "{{ pastebin.layout }}",
"content": {{ pastebin.content | strip_html | jsonify }}
}{% unless forloop.last %},{% endunless %}
{% endfor %}
@@ -72,7 +72,7 @@
"url": "{{ til.url }}",
"lang": "{{ til.lang }}",
"ref": "{{ til.ref }}",
- "layout": "til",
+ "layout": "{{ til.layout }}",
"content": {{ til.content | strip_html | jsonify }}
}{% unless forloop.last %},{% endunless %}
{% endfor %}