Skip to content

Convert Day One journal entries to Markdown and Front Matter

License

Notifications You must be signed in to change notification settings

jbmorley/day-one-to-markdown

Repository files navigation

day-one-to-markdown

Convert Day One journal entries to Markdown and Front Matter.

Introduction

Day One doesn't make it easy to pull journal data out in a portable way.

day-one-to-markdown converts Day One's zipped JSON exports (of one or more journal entries), to a folder of Markdown files and attachments, suitable for use with blogging tools like Jekyll. All of the journal metadata ends up in Front Matter, so it's immediately available to any page template.

Installation

git clone git@github.com:jbmorley/day-one-to-markdown.git
cd day-one-to-markdown
pipenv install

Usage

Exporting from Day One is simply a matter of selecting the entries you wish to export, and choosing the JSON format. On a Mac, this can be done from 'File > Export > JSON' (you can find detailed documentation for other platforms on the Day One support pages):

Exporting a journal entry on macOS

Once you have a zip file containing the export, perform the conversion by specifying the file and target directory in which you wish the individual entires to be created.

For example, the following command creates posts for the journal entries in 'Export - All Entries (20020-11-07).zip' in the drafts folder of my website:

day-one-to-markdown "Export - All Entries (20020-11-07).zip" ~/Site/content/drafts

About

Convert Day One journal entries to Markdown and Front Matter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published