diff --git a/wok/engine.py b/wok/engine.py index 72e8d9e..74ad8fc 100755 --- a/wok/engine.py +++ b/wok/engine.py @@ -25,7 +25,7 @@ class Engine(object): 'output_dir': 'output', 'media_dir': 'media', 'site_title': 'Some random Wok site', - 'url_pattern': '/{category}/{slug}{page}.{type}', + 'url_pattern': '/{category}/{slug}{page}.{ext}', 'url_include_index': True, } @@ -126,6 +126,11 @@ def read_options(self): 'Smith"] instead of "John Doe, Jane Smith". In config ' 'file.') + if '{type}' in self.options['url_pattern']: + logging.warn('Deprecation Warning: You should use {ext} instead ' + 'of {type} in the url pattern specified in the config ' + 'file.') + def sanity_check(self): """Basic sanity checks.""" # Make sure that this is (probabably) a wok source directory.