Skip to content

Commit

Permalink
fix background image path
Browse files Browse the repository at this point in the history
  • Loading branch information
baloola committed Aug 24, 2024
1 parent 22b9406 commit 7038867
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion path_fixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ def extract_hrefs_and_srcs(folder_path):
content = f.read()

new_content = re.sub(r'(href|src)="(/)', r'\1="https://baloola.github.io/sudan-house/', content)
final_content = re.sub(r'url\(\/static', 'url(https://baloola.github.io/sudan-house/static', new_content)

with open(file_path, 'w') as f:
f.write(new_content)
f.write(final_content)

return hrefs_and_srcs

Expand Down

0 comments on commit 7038867

Please sign in to comment.