--
This commit is contained in:
@@ -216,7 +216,7 @@ async def default_response(request: Request, full_path: str) -> Response:
|
||||
body = markdown[end+4:].lstrip("\n")
|
||||
|
||||
html = htmlitdown(body)
|
||||
source = "{{% extends \"/base.html\" %}}\n"
|
||||
source = f"{{% extends \"/base.html\" %}}\n"
|
||||
for block in front:
|
||||
source += f"{{% block {block} %}}{front[block]}{{% endblock %}}\n"
|
||||
source += f"{{% block content %}}\n{html}\n{{% endblock %}}\n"
|
||||
|
||||
Reference in New Issue
Block a user