You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ i }} - {{ forloop.index |random_item: colors }}
@@ -86,7 +86,7 @@ The results:
86
86
87
87
Return random date between _start_date_ and _end_date_. By default, it returns the date between 100 days ago and now. Returned date you can format by `date` filter to get expected result. This filter is useful when you generate birth date or register date.
@@ -107,7 +107,7 @@ Return random date between _start_date_ and _end_date_. By default, it returns t
107
107
108
108
This filter works similar to `random_date`, but returns random date between today and date _days_ago_ ago. By default return date between now and 100 days ago. It is helpful to generate random data like last login date. If you additionally use the `jekyll-timeago` filter you can get date in _2 days ago_ format.
109
109
110
-
```
110
+
```ruby
111
111
{% for i in (1..100) %}
112
112
{{ i }} - {{ forloop.index |random_date_ago:10| timeago }}
113
113
{% endfor %}
@@ -145,7 +145,7 @@ You can also change _days_ago_ parameter to negative number like `{{ forloop.ind
145
145
146
146
Sometimes you want to generate data in the same row with the same parameters. Because this plugin generate pseudo-random data every returned number will be the same:
0 commit comments