Sha256: 5fa3ac2f56866d054523f2239c7202bf5ddeff8347900f475dc7cca9ab9f0186
Contents?: true
Size: 641 Bytes
Versions: 5
Compression:
Stored size: 641 Bytes
Contents
{% assign random1 = site.time | date: "%s%N" | modulo: site.posts.size %} {% assign post_random1 = site.posts[random1] %} {% assign random2 = site.time | date: "%s%N" | plus: 20 | modulo: site.posts.size %} {% assign post_random2 = site.posts[random2] %} {% assign random3 = site.time | date: "%s%N" | plus: 80 | modulo: site.posts.size %} {% assign post_random3 = site.posts[random3] %} <h2>Random Posts</h2> <ul> <li><a href="{{ post_random1.url }}">{{ post_random1.title }}</a></li> <li><a href="{{ post_random2.url }}">{{ post_random2.title }}</a></li> <li><a href="{{ post_random3.url }}">{{ post_random3.title }}</a></li> </ul>
Version data entries
5 entries across 5 versions & 1 rubygems