From dba4172474c83cd960798551ba31f651e1360968 Mon Sep 17 00:00:00 2001 From: aliabd Date: Tue, 8 Feb 2022 01:24:33 +0400 Subject: [PATCH 1/3] generating with dir and index --- website/homepage/render_html.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/website/homepage/render_html.py b/website/homepage/render_html.py index 03368dd304..14181835e5 100644 --- a/website/homepage/render_html.py +++ b/website/homepage/render_html.py @@ -68,7 +68,9 @@ def render_guides_main(): with open("src/guides_main_template.html", encoding='utf-8') as template_file: template = Template(template_file.read()) output_html = template.render(guides=guides, navbar_html=navbar_html) - with open(os.path.join("generated", "guides.html"), "w", encoding='utf-8') as generated_template: + with open(os.path.join("generated", "guides", "index.html"), "w", encoding='utf-8') as generated_template: + generated_template.write(output_html) + with open(os.path.join("generated", "guide.html"), "w", encoding='utf-8') as generated_template: generated_template.write(output_html) From 9f1f8503b48017603495fc6fa5e413997699ea9c Mon Sep 17 00:00:00 2001 From: aliabd Date: Tue, 8 Feb 2022 01:28:58 +0400 Subject: [PATCH 2/3] changing href in navbar --- website/homepage/src/navbar.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/homepage/src/navbar.html b/website/homepage/src/navbar.html index 588b513d32..ab5306be42 100644 --- a/website/homepage/src/navbar.html +++ b/website/homepage/src/navbar.html @@ -5,7 +5,7 @@