Quickly generate landing pages to PoC new ideas
jekyll new mySite
Update Gemfile
minima
)gem "jekyll-remote-theme"
to support loading theme from GitHubUpdate _config.yml
jekyll-remote-theme
to plugins
listremote_theme: mikeqdev/landing-page-gen-jekyll@<release-version>
collections: [ stuff ]
Cannot sort a null object.
Update index.md
(the dualpane.html
file will iterate over site.stuff
from the _config.yml
, which points to _stuff
dir in next step)
---
layout: default
---
{% include dualpane.html %}
Create a _stuff
directory and add content there. Check examples in _stuff for reference
Install dependencies: bundler install
Serve locally: bundler exec jekyll serve
Ruby 2.5 --> gem install bundler -v 2.3.14
bundle install
To start the Jekyll local development server.
bundle exec jekyll serve [--host=0.0.0.0]
To build the site. Output goes to ./_site/
.
bundle exec jekyll build
To make available to consumers, create a release (with tag) in GitHub. Consumers can then specify version in jekyll-remote-theme
(or via branch name)
To publish to gh-page (see Live demo), simply push to gh-pages
branch
Note: Do not modify ./_site/
, as this directory contains the generated HTML file(s)
Update *.md files in ./_stuff/
. Ensure to specify a weight
for proper ordering
Update in ./_sass/
, then update in ./assets/
if needed
Add images to ./assets/
, then reference them in your markdown files