add {{site_name}} placeholder to wrap_page and kodama2 theme

This commit is contained in:
lichenblankie 2026-06-05 04:17:02 +00:00
parent 5866b7b4d7
commit 2c8f3e39b5
3 changed files with 12 additions and 1 deletions

View file

@ -33,4 +33,5 @@ def wrap_page(body_html, use_default=False):
template = _default_template()
forum_link = ' <a href="/forum">forum</a>' if FORUM_ENABLED else ""
template = template.replace("{{forum_link}}", forum_link)
template = template.replace("{{site_name}}", esc(get_setting("site_name", "tinyweb")))
return template.replace("{{content}}", body_html)