This commit is contained in:
Manuel Ebert 2016-07-17 13:35:32 -07:00
parent 3580154f7d
commit 8b64cc95d9
8 changed files with 273 additions and 3 deletions

View file

@ -0,0 +1,34 @@
---
extension: json
---
{% block journal %}
{
"tags": {
{% for tag in tags %}
"{{ tag.name }}": {{ tag.count }}{% if not __last_iteration %},{% endif %}
{% endfor %}
},
"entries": [
{% for entry in entries %}
{% include entry %}{% if not __last_iteration %},{% endif %}
{% endfor %}
]
}
{% endblock %}
{% block entry %}
{
"title": "{{ entry.title }}",
"body": "{{ entry.body }}",
"date": "{{ entry.date.strftime('%Y-%m-%d') }}",
"time": "{{ entry.date.strftime('%H:%M') }}",
{% if entry.uuid %}
"uuid": "{{ entry.uuid }}",
{% endif %}
"starred": {{ "true" if entry.starred else "false" }}
}
}
{% endblock %}
Hey There