NSFW section moved down in single-page (#658)

* NSFW section moved down in single-page

* simplify check

---------

Co-authored-by: taskylizard <75871323+taskylizard@users.noreply.github.com>
This commit is contained in:
progamerz-dev 2023-06-03 22:21:43 +03:00 committed by GitHub
parent 280b048856
commit a13a347eaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,11 +6,15 @@ import re
def output():
read = glob.glob("*.md")
content = ""
nsfw_content = ""
for file in read:
if file != "single-page.md" and file != "README.md":
if file != "README.md":
with open(file, "r") as f:
if "nsfw" in file.lower():
nsfw_content += f.read()
continue
content += f.read()
return content
return content + nsfw_content
def main():
content = output()