Nanoc content source from git repository. A way to have your writing in public and open for editing while not being distracted by static site generator trivia this content is usually mixed with.
Gemfile in your nanoc project:
Then tell nanoc to load it in
At last, enable github data source in
data_sources: - type: github items_root: /posts # the root where items should be mounted repository: arkency/posts # organization/repository on github to use as a source of content encoding: utf-8 # how to decode content (default: utf-8) access_token: secret123 # github access token, not required for public repositories (default: nil) path: posts/ # subdirectory of the content in given repository (default: nil) concurrency: 10 # how many threads to spawn to fetch data (default: 5) verbose: true # show HTTP cache hit/miss on STDOUT (default: false) max_age: 600 # override time in which cached content is considered to be fresh (default: 60)