fix: Update check for project images to correctly display
All checks were successful
Build Docker / BuildImage (push) Successful in 45s

This commit is contained in:
Nathan Woodburn 2024-09-11 21:03:11 +10:00
parent 867583d30c
commit 9881584cdb
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -411,7 +411,10 @@ def index():
pageNum += 1 pageNum += 1
for project in projects: for project in projects:
if project["avatar_url"] == "https://git.woodburn.au/": if (
project["avatar_url"] == "https://git.woodburn.au/"
or project["avatar_url"] == ""
):
project["avatar_url"] = "/favicon.png" project["avatar_url"] = "/favicon.png"
project["name"] = project["name"].replace("_", " ").replace("-", " ") project["name"] = project["name"].replace("_", " ").replace("-", " ")
# Sort by last updated # Sort by last updated