jnordberg / wintersmith

A flexible static site generator
http://wintersmith.io/
MIT License
3.5k stars 332 forks source link

Add URL search/replace patching #247

Closed michael4snupps closed 9 years ago

michael4snupps commented 10 years ago

Add new config.json entry, "patchUrl", which is a dictionary of regex searches (keys) and corresponding replacements (values).

These rules are applied to URL links when they are automatically generated from the contents directory structure.

This allows, for example, using one wintersmith contents directory to contain content for multiple virtual sites.

jnordberg commented 10 years ago

Not sure about this, any reason it can't be done in a plugin by subclassing and overriding getURL?