jekyll-random-redirect

jekyll-random-redirect

Redirect to a random Jekyll post, page or document. Github Pages compatible. (This repository is archived. Issues are disabled. Pull requests will be ignored.)

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