diff --git a/.github/single-page.py b/.github/single-page.py index a8240b226..7028cae13 100644 --- a/.github/single-page.py +++ b/.github/single-page.py @@ -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()