Polly po-cket
{% set data=include(db~'/posts/posts_list.txt')|split('#') %} {% set count=data|length-data|replace({'#':""})|length %} {% for j in 1..v[2] %}{% set i=random(count) %}{% if i==0 %}{% set i=random(count) %}{% endif %} {% set posts=include(db~'/posts/'~data[i]~'/posts_mini_index.txt', ignore_missing = true)|split('<[mrducz95]>') %}{% set count_chaper=include(db~'/count/posts/'~data[i]~'.txt', ignore_missing = true)+0 %} {% if data[i] %}
{{posts[1]}}|raw
{{posts[1]}}
{% endif %}{% endfor %}