added fallback css path
This commit is contained in:
parent
d6d9183e00
commit
a8c3d149a3
4
main.py
4
main.py
|
@ -166,6 +166,8 @@ if html:
|
|||
convert = pypandoc.convert_file(ifname,'html',outputfile=ofname,extra_args=['-s'])
|
||||
assert(convert) == ''
|
||||
|
||||
soup = None
|
||||
|
||||
with open(ofname) as fp:
|
||||
soup = BeautifulSoup(fp,'html5lib')
|
||||
|
||||
|
@ -180,6 +182,8 @@ if html:
|
|||
custom_css = soup.new_tag('link',href=html_stylesheet,rel='stylesheet')
|
||||
soup.head.append(custom_css)
|
||||
|
||||
custom_css = soup.new_tag('link',href=str("../"+html_stylesheet),rel='stylesheet')
|
||||
soup.head.append(custom_css)
|
||||
|
||||
if animations:
|
||||
aos_css = soup.new_tag('link',href='https://unpkg.com/aos@2.3.1/dist/aos.css',rel='stylesheet')
|
||||
|
|
Loading…
Reference in New Issue