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:
parent
280b048856
commit
a13a347eaf
8
.github/single-page.py
vendored
8
.github/single-page.py
vendored
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user