mirror of
https://github.com/fmhy/edit.git
synced 2026-02-17 16:51:12 +11:00
NSFW section moved down in single-page
This commit is contained in:
parent
280b048856
commit
16ea81aa04
1 changed files with 5 additions and 1 deletions
6
.github/single-page.py
vendored
6
.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":
|
||||
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…
Add table
Add a link
Reference in a new issue