Skip to content

Instantly share code, notes, and snippets.

@peey peey/_config.yml
Last active Dec 2, 2017

Embed
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: https://jekyllrb.com/docs/permalinks/#template-variables
@peey

This comment has been minimized.

Copy link
Owner Author

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.