Skip to content

lycarter/blog

Repository files navigation

Shutter Clicks

Netlify Status

Tale

Gem Version

Tale is a minimal Jekyll theme curated for storytellers. I'm using it for my Jekyll site.

How to run

Jekyll Stuff

Install Ruby using rbenv (make sure to rbenv global <version>), then install bundler, and Jekyll. bundle install bundle exec jekyll serve --watch --drafts

Debugging info is found at /about-technical/

Photo assets

Install the virtualenv:

  • cd scripts
  • mkdir venv
  • python3 -m venv venv
  • source venv/bin/activate
  • pip install -r requirements.txt (this may fail, sort that out then move on)

Once the virtualenv is installed:

  • cd scripts
  • source venv/bin/activate
  • python thumbnail_generator.py

Todo: I should make the script automatically read EXIF data and rotate things appropriately for direct-from-phone photos. For now, exporting in Lightroom fixes things.

Netlify

  • Install netlify cli
  • Install lm addon netlify plugins:install netlify-lm-plugin && netlify lm:install
  • Add ca cert: export NODE_EXTRA_CA_CERTS=/path/to/ca-bundle.crt
  • Login: netlify login
  • Status: netlify status

After that, git lfs should mostly just work with netlify.

Other notes

For setting page-specific sharing tags: https://github.com/jekyll/jekyll-seo-tag/blob/master/docs/usage.md

For merging upstream master:

git remote add upstream git@github.com:chesterhow/tale.git
git fetch upstream
git merge upstream/master

For fixing git-lfs history:

$ git filter-branch --prune-empty --tree-filter '
git lfs track "*.jpg"
git lfs track "*.jpeg"
git lfs track "*.gif"
git lfs track "*.png"
git lfs track "*.pdf"
git add .gitattributes

git ls-files -z | xargs -0 git check-attr filter | grep "filter: lfs" | sed -E "s/(.*): filter: lfs/\1/" | tr "\n" "\0" | while read -r -d $'"'\0'"' file; do
    echo "Processing ${file}"

    git rm -f --cached "${file}"
    echo "Adding $file lfs style"
    git add "${file}"
done

' --tag-name-filter cat -- --all

License

See LICENSE