Skip to content

Instantly share code, notes, and snippets.



Last active Dec 2, 2017
What would you like to do?
Jekyll plugin for parsing of custom variables in permalinks
# will substitute :author with the variable author in your file (also works with defaults).
permalink: /:author/:slug/
# You need to have this extra permalink_custom_vars array to tell the plugin which substitutions to make
permalink_custom_vars: ['author']
# Note that you don't have to include the supported variables in this list as jekyll takes care of that
# For a complete list of variables jekyll supports, see:

This comment has been minimized.

Copy link
Owner Author

@peey peey commented May 17, 2017

To use, please put the .rb file in a directory named _plugins. See the article for more details.
Disclaimer: I only know as much ruby as I've learnt in the past 20 minutes. Safety not guaranteed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.