nntrn / save

https://nntrn.github.io/save/
2 stars 0 forks source link

things i save on my phone

Create and update blog post when issues are created/updated!

This project uses the magic that is Github Actions and Jekyll so I can update nntrn.github.io/save from my phone using the Github app.

Build your own

Requires jq and bundler

# 0. Download jq and bundler if you don't have it already

# 1. Clone project
git clone https://github.com/nntrn/save.git
cd save

# 2. Set variables
export GITHUB_REPOSITORY=nntrn/save
export GITHUB_TOKEN=....

# 3. Fetch issues api to build posts
./scripts/build.sh _data

# 4. Serve
bundle install
bundle exec jekyll serve

Generate output from json

With the plugin datapage.rb, setting the variable from_template, in _config.yml will generate post and page content in _site.

# _config.yml

from_template:
  - data: "posts"       # takes _data/posts.json 
    template: "page"    # takes _layouts/page.html
    dir: "number"       # makes _site/8   
    index_files: true   # makes _site/8/index.html

Notes