--- # Jekyll page that redirects to a random page, post or document # https://github.com/jekylltools/jekyll-random-redirect # v1.6 permalink: /wiki:random --- {%- assign docs = site.posts -%} {%- if site.random_redirect.pages == true -%} {%- assign pages = site.wiki | where_exp:"page","page.url != '/random/'" -%} {%- assign docs = docs | concat: pages -%} {%- endif -%} {%- if site.random_redirect.documents == true -%} {%- assign docs = docs | concat: site.documents | uniq -%} {%- endif -%}