Skip to content

Commit 83633c7

Browse files
committed
one more fix to make links work...
1 parent 53dc343 commit 83633c7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

circle_urls.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
files = glob("%s/*.html" %(site_dir))
1414

1515
# For each file, we need to replace all links to have correct .html extension
16-
search_names = [os.path.basename(f) for f in files]
16+
search_names = [os.path.basename(f).replace('.html','') for f in files]
1717
for html_file in files:
1818
with open(html_file,'r') as filey:
1919
content = filey.read()
2020
for search_name in search_names:
2121
content = content.replace('%s"' %(search_name),'%s.html"' %(search_name))
22-
content = content.replace('/images/logo/logo.svg','http://singularity.lbl.gov/images/logo/logo.svg')
22+
content = content.replace('/images/logo/logo.svg','http://singularity.lbl.gov/images/logo/logo.svg')
2323
with open(html_file,'w') as filey:
2424
filey.write(content)

0 commit comments

Comments
 (0)