Skip to main content
Vue

maine-weather-report

No description provided

Commits
48
Files
88
Size
6.6 MB
Langs
4
Created
Aug 29, 2019
Last push
almost 4 years ago
README.md

ejfox

Personal website & blog for EJ Fox

https://ejfox.com

Netlify Status

Currently powered by:

  • Netlify for web hosting
  • Cloudinary for image hosting
  • Vue/Nuxt for the site
  • Tachyons for layout and styling
  • Markdown for text formatting

Backups

http://ejfox.keybase.pub

To do

  • Add status tags for posts ("notes", "draft", "in progress", "finished" )
  • Add way for people to submit anonymous feedback / tips
  • Add mechanism for automatically archiving linked URLs a la Gwern

Books

To get book library for goodreads to the books page:

  • Go to this page and click "Export Library"
  • Wait for library in email
  • Copy the goodreads CSV to the data folder
  • Run npx csvtojson static/data/goodreads_library_export.csv > static/data/goodreads_library_export.json to convert the CSV into json

To scrape highlights:

  • scrape-highlights https://www.goodreads.com/notes/9273959-ej-fox > static/data/book_highlights.json

Markdown Blog Posts

# To convert all JSON blog posts to markdown:
processmd content/blog/posts/*.json --outputDir content/blog/md/ --convertMode source
# or
npm run blog:to-md

# To copy over all PUBLISHED markdown files in Dropbox writing folder to `md` folder in `~/content/blog/`
cp ~/Dropbox/Writing/PUBLISHED/*.md content/blog/md/
# or
npm run dropbox-import

# To convert all markdown posts to JSON files and copy them to the content directory
processmd content/blog/md/* --outputDir content/blog/posts/
# or
npm run blog:md-to-json

Build Setup

# install dependencies
npm install # Or yarn install

# serve with hot reload at localhost:3000
npm run dev

# build for production and launch server
npm run build
npm start

# generate static project
npm run generate

# generate static project and publish to keybase
npm run keybase

# pull in markdown from dropbox and generate static project and publish everywhere
npm run publish

# convert goodreads csv into json
npx csvtojson static/data/goodreads_library_export.csv > static/data/goodreads_library_export.json

# convert projects csv into json
npx csvtojson static/data/projects.csv > static/data/projects.json