mirror of
https://github.com/fmhy/edit.git
synced 2026-01-18 01:41:52 +11:00
ignore index.md in single-page
This commit is contained in:
parent
f04970b92e
commit
6c50927505
1 changed files with 6 additions and 1 deletions
7
.github/single-page.py
vendored
7
.github/single-page.py
vendored
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue