I built Day One Parser to host my Food Log online and to share it with my nutritionist. However it can also be used to run a blog powered by Day One Journal. Here is what it does:
- displays Day One Tags as a list of color coded slugs (tag colors are defined in
CssLookupseeconf/dop.jsonwarning=yellow,danger=red,success=green) - places Day One Image at the top of the entry to which it was attached
- counts the number of "Search-String" in Day One entry and displays it in a badge (Search-String is defined in
Countseeconf/dop.json) - decodes a starred entry and displayes it as a YES/no slug
DOP also supports custom Title, URL and Description for each entry as follows:
- if First line of the entry begins with
#what follows is used for Title - if Second line of the entry begins with
//dd:what follows is used for Description - if Third line of the entry begins with
//dl:what follows is used for url link
Example:
# Custom Entry Title
//dd: Longer Description of the entry
//dl: my-entry-url.html
GOPATH=/data/app/dev/golang; export GOPATH
GO=/usr/local/go/bin/go; export GO
$GO get github.com/vmogilev/dop
$GO install github.com/vmogilev/dop
Modify conf/dop.json and define the following variables:
Title: Site's Top Level TitleDesc: Site's description - maps to<meta name="description" content="">on top level page/rootPubStarred:true|false- iftrueonly Starred entries are publishedCount: Only used withdop_foodtemplate - counts occurances of string and sets result in a badgeCssLookup: map oftag->css-tag- allowed values [successwarningdanger]
Modify conf/dop.env and define HTTP Host variables and JDIR - path to your DayOne journal directory where entries subdirectory is located (see example configuration)
Source the conf/dop.env:
. conf/dop.env
Start it:
./start.sh
./stop.sh
Apache License Version 2.0
*rev: 205 *
