fix img url.
This commit is contained in:
parent
51487d6f00
commit
4d1dc94f68
1 changed files with 3 additions and 3 deletions
|
@ -165,9 +165,9 @@ class Post(object):
|
|||
d = PyQuery(self.body)
|
||||
for img in d.find('img'):
|
||||
if not '/' in img.attrib['src']:
|
||||
img.attrib['src'] = ''.join([config.blogurl,
|
||||
self.outputpath,
|
||||
img.attrib['src']])
|
||||
img.attrib['src'] = '{}{}/{}'.format(config.blogurl,
|
||||
self.outputpath,
|
||||
img.attrib['src'])
|
||||
self.body = d.html()
|
||||
elif self.extension == '.rst':
|
||||
rst = publish_parts(
|
||||
|
|
Reference in a new issue