diff options
author | EuAndreh <eu@euandre.org> | 2020-02-06 02:06:34 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-02-06 02:06:34 -0300 |
commit | 02943c8e2d96ec0534b243386f4048df3cddd24d (patch) | |
tree | 920dd44a69a9504cb1eb0208634187e1b0ccb258 /site.json | |
parent | Add missing lang annotations (diff) | |
download | euandre.org-02943c8e2d96ec0534b243386f4048df3cddd24d.tar.gz euandre.org-02943c8e2d96ec0534b243386f4048df3cddd24d.tar.xz |
Assert pastebins have lang frontmatter
Diffstat (limited to '')
-rw-r--r-- | site.json | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -23,5 +23,17 @@ "content": {{ page.content | strip_html | jsonify }} }{% unless forloop.last %},{% endunless %} {% endfor %} + ], + "pastebins": [ + {% for pastebin in site.pastebins %} + { + "title": "{{ pastebin.title | smartify }}", + "date": "{{ post.date }}", + "url": "{{ pastebin.url }}", + "lang": "{{ pastebin.lang }}", + "ref": "placeholder-ref", + "content": {{ pastebin.content | strip_html | jsonify }} + }{% unless forloop.last %},{% endunless %} + {% endfor %} ] } |