diff options
| author | EuAndreh <eu@euandre.org> | 2020-08-17 15:39:08 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2020-08-17 15:39:08 -0300 |
| commit | 37109100c380814e21e5d7cc244f1d17e5b8b638 (patch) | |
| tree | d144b91fc8feb4108d2ae00ea0b91e2677caa76c /site | |
| parent | public-inbox.html: Simplify page footer. (diff) | |
| download | euandre.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.json | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 %} |
