forked from github/pelican
Merge pull request #1663 from avaris/fix_relative_urls
Use `--relative-urls` only if it is specified
This commit is contained in:
commit
df70fa8596
1 changed files with 2 additions and 1 deletions
|
|
@ -321,7 +321,8 @@ def get_config(args):
|
|||
config['CACHE_PATH'] = args.cache_path
|
||||
if args.selected_paths:
|
||||
config['WRITE_SELECTED'] = args.selected_paths.split(',')
|
||||
config['RELATIVE_URLS'] = args.relative_paths
|
||||
if args.relative_paths:
|
||||
config['RELATIVE_URLS'] = args.relative_paths
|
||||
config['DEBUG'] = args.verbosity == logging.DEBUG
|
||||
|
||||
# argparse returns bytes in Py2. There is no definite answer as to which
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue