Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 715 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 715 Bytes

Jekyll Random Redirect

Jekyll page that redirects to a random post, page or document using Javascript. Fully compatible with Github Pages.

View a live demo running on Github Pages. The code and configuration for the demo is in the gh-pages branch.

Usage

  1. Add random.html to the site.
  2. Rebuild the site, then visit the page and you'll be redirected to a random post.

By default, the page will redirect only to posts. You can include pages and documents from collections by adding a setting in _config.yml

random_redirect:
  pages: true
  documents: true