Nanoc::Github
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.
Usage
Add to Gemfile
in your nanoc project:
gem "nanoc-github"
Then tell nanoc to load it in lib/default.rb
:
require "nanoc/github"
At last, enable github data source in nanoc.yaml
:
data_sources:
- type: github
items_root: /posts
repository: arkency/posts
encoding: utf-8
access_token: secret123
path: posts/
concurrency: 10
verbose: true
max_age: 600
Status