Skip to content

Latest commit

 

History

History
26 lines (23 loc) · 595 Bytes

File metadata and controls

26 lines (23 loc) · 595 Bytes
layout default
title Random Tutorial
permalink /random/
sitemap false

Picking a random tutorial...

Please wait a moment.

<script> const posts = [ {% for post in site.posts %} "{{ post.url | relative_url }}"{% unless forloop.last %},{% endunless %} {% endfor %} ]; if (posts.length > 0) { const randomPost = posts[Math.floor(Math.random() * posts.length)]; window.location.href = randomPost; } else { window.location.href = "{{ '/' | relative_url }}"; } </script>