Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.11 KB

README.md

File metadata and controls

31 lines (23 loc) · 1.11 KB

Grav Random Plugin

Random is a Grav Plugin and allows to load a random article based on its taxonomy filters.

Installation

To install this plugin, just download the zip version of this repository and unzip it under /your/site/grav/user/plugins. Then rename the folder to random.

You should now have all the plugin files under

/your/site/grav/user/plugins/random

Usage

Random creates a route that you define and based on the taxonomy filters it picks a random item. To customize the plugin you firstly need to create an override config. To do so, create the folder user/config/plugins (if it doesn't exist already) and copy the random.yaml config file in there.

Now you can edit it and tweak it however you prefer.

For further help with the filters settings, please refer to our Taxonomy and Headers documentation.

Config Defaults

route: /random
filters:
    category: blog