This commit is contained in:
2026-04-26 19:26:42 +09:00
parent 872f77de3d
commit 63ab90f12b
+1 -1
View File
@@ -216,7 +216,7 @@ async def default_response(request: Request, full_path: str) -> Response:
body = markdown[end+4:].lstrip("\n") body = markdown[end+4:].lstrip("\n")
html = htmlitdown(body) html = htmlitdown(body)
source = "{{% extends \"/base.html\" %}}\n" source = f"{{% extends \"/base.html\" %}}\n"
for block in front: for block in front:
source += f"{{% block {block} %}}{front[block]}{{% endblock %}}\n" source += f"{{% block {block} %}}{front[block]}{{% endblock %}}\n"
source += f"{{% block content %}}\n{html}\n{{% endblock %}}\n" source += f"{{% block content %}}\n{html}\n{{% endblock %}}\n"