ignore index.md in single-page

This commit is contained in:
taskylizard 2024-01-05 07:45:20 +00:00
parent f04970b92e
commit 6c50927505
No known key found for this signature in database
GPG Key ID: 1820131ED1A24120

View File

@ -7,7 +7,12 @@ def output():
content = ""
nsfw_content = ""
for file in read:
if file != "README.md" or file != "feedback.md" or file != "posts.md":
if (
file != "README.md"
or file != "feedback.md"
or file != "posts.md"
or file != "index.md"
):
with open(file, "r") as f:
if "NSFWPiracy.md" == file:
nsfw_content += f.read()