Skip to content

RyanMPierson/grav-plugin-random

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Grav Random Plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published