PushPress
Subscribe, Schedule, and Search for Jekyll
Publishing the gem
- Build the gem
bundle exec gem build jekyll-pushpress.gemspec
- Push the gem
bundle exec gem push jekyll-pushpress-0.0.1.gem
Steps
-
git clone --depth 1 repo -
Replace Gemfile
source 'https://rubygems.org'
gem 'github-pages', group: :jekyll_plugins
gem 'jekyll-pushpress'
- Add pushpress_config.yml
gems: ["jekyll-pushpress"]
- Insert
pushpressdirectory in_layouts, with default newsletter template.
Sends to PushPress server
- front matter fields
- hash of page or document content.
- if subscribe is enabled, use or add templates to
_layouts/pushpressdirectoryletter.html-
subscribe.html(webview) -
unsubscribe.html(webview)
- Run...
DISABLE_WHITELIST=true bundle exec jekyll build --config=_config.yml,pushpress_config.yml --destination=/dev/null
Sample
cd sample
bundle install
PAGES_REPO_NWO=ehfeng/jekyll-pushpress DISABLE_WHITELIST=true bundle exec jekyll serve --config=_config.yml,pushpress_config.yml