If this '/' is not present, then the second pagination code snippet under the "Render the paginated Posts" section will have a bug. Let's say my page 1 is located at host:port/blog/index.html and my paginate_path setting in _config.yml is "blog/page:num/". The observation if the paginate_path does not start with a '/' is that the href generated for the page numbers will have 2 'blogs', i.e. for page 2 the href will incorrectly appear as 'host:port/blog/blog/page2' instead of just 'host:port/blog/page2'. |
||
---|---|---|
.. | ||
_data | ||
_docs | ||
_includes | ||
_layouts | ||
_posts | ||
_sass | ||
css | ||
fonts | ||
help | ||
img | ||
js | ||
news | ||
.gitignore | ||
CNAME | ||
README.md | ||
_config.yml | ||
favicon.ico | ||
feed.xml | ||
freenode.txt | ||
index.html | ||
latest_version.txt |
README.md
Jekyll docs site
This directory contains the code for the Jekyll docs site, jekyllrb.com.
Contributing
For information about contributing, see the Contributing page.
Running locally
You can preview your contributions before opening a pull request by running from within the directory:
bundle install
bundle exec rake site:preview
It's just a jekyll site, afterall! 😉