Upload files to "/"

This commit is contained in:
2024-11-28 10:35:03 -05:00
parent d0bfb069fb
commit eb2492c61f

8
app.py
View File

@ -105,6 +105,14 @@ def methodology():
content = get_methodology_content()
return render_template('methodology.html', content=content)
@app.route('/methodology/<title>')
def methodology_section(title):
content = get_methodology_content()
section = next((s for s in content if s["title"].replace(" ", "_").lower() == title.lower()), None)
if not section:
abort(404)
return render_template('section.html', section=section)
@app.route('/linux')
def linux():
sections = get_linux_content()