From a13a347eaff2131c5629bbac9a7c39c82ff5e02f Mon Sep 17 00:00:00 2001 From: progamerz-dev <110605605+progamerz-dev@users.noreply.github.com> Date: Sat, 3 Jun 2023 22:21:43 +0300 Subject: [PATCH] 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> --- .github/single-page.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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()