forked from github/pelican
Merge pull request #2882 from MinchinWeb/patch-1
Allow easy subclassing of Writer
This commit is contained in:
commit
7dfac1c0c0
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ class Writer:
|
|||
self._overridden_files = set()
|
||||
|
||||
# See Content._link_replacer for details
|
||||
if self.settings['RELATIVE_URLS']:
|
||||
if "RELATIVE_URLS" in self.settings and self.settings['RELATIVE_URLS']:
|
||||
self.urljoiner = posix_join
|
||||
else:
|
||||
self.urljoiner = lambda base, url: urljoin(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue