Sign in

Random Posts in Static sites

Avatar photoTomasz Dziuda


Due nature of the static websites it is not possible to achieve in the output HTML. The only solution can be creating JSON object with posts to load and then display them randomly, but as I suppose it won’t work for the search engine crawlers as it will be a content dynamically generated by JS script.

Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!