Skip to content

Instantly share code, notes, and snippets.

@timpulver
Created February 27, 2013 15:29
Show Gist options
  • Save timpulver/5048745 to your computer and use it in GitHub Desktop.
Save timpulver/5048745 to your computer and use it in GitHub Desktop.
[dayone_export] Jinja2 style template for dayone_export (https://github.com/nathan11g/dayone_export/blob/master/dayone_export/templates/default.html), a tool for exporting day one journals to markdown / html / plain text. This template can be used to export day one journals to markdown format including photos / images. Place the template in your…

#Journal Entries

{% for entry in journal %} ##{{ entry['Date'] | format }}

{% if entry.place() %} {{ entry.place() }}, {% endif %} {{ entry['Date'] | format('%-I:%M %p %Z') }} {% if 'Photo' in entry %} ![Entry image]({{ entry['Photo'] }}) {% endif %} {{ entry['Text'] | markdown }} {% endfor %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment