import re
filepath = "src/main/resources/templates/themes/umass/footer.html"
with open(filepath, "r", encoding="utf-8") as f:
content = f.read()
# We want to replace the `a.logo` block with our new logo
# Using DOTALL to match across newlines
pattern = r']*>.*?'
replacement = '\n \n
![Sisvietnamvn]()
\n
\n'
content = re.sub(pattern, replacement, content, count=1, flags=re.DOTALL)
with open(filepath, "w", encoding="utf-8") as f:
f.write(content)
print("Updated footer.html")