You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For now, I just wrote a simple python program that replaces text in every html file:
frompathlibimportPathdefreplace_text(old, new):
"""Replace text in all html files. Parameters ---------- old, new : str The string to look for and the string to replace it with. """files=Path("site/").rglob("*.html")
forfile_pathinsorted(files):
# Read the content of the filewithopen(file_path, "r") asfile:
content=file.read()
# Write the modified content back to the filewithopen(file_path, "w") asfile:
file.write(content.replace(old, new))
# -----------------------# Add Font Awesome v6 Kitold="</head>"new=""" <script src="https://kit.fontawesome.com/XXXXXX.js" crossorigin="anonymous"></script> </head>"""replace_text(old, new, files="all")
print("🔧 Added support for Font Awesome v6.")
Any ideas on how it might be possible to use Fontawesome v6 instead of the default v4 in FORD?
Simply adding this to the
<head>
worksbut I can't find a FORD configuration to add additional content to
<head>
during the page build.The text was updated successfully, but these errors were encountered: