hid forum link when disabled

This commit is contained in:
lichenblankie 2026-06-05 02:29:18 +00:00
parent d29ff82fb1
commit 8d9f2bf4e7
2 changed files with 11 additions and 0 deletions

View file

@ -31,4 +31,6 @@ def wrap_page(body_html, use_default=False):
template = get_setting("custom_template") or _default_template()
if "{{content}}" not in template:
template = _default_template()
forum_link = ' <a href="/forum">forum</a>' if FORUM_ENABLED else ""
template = template.replace("{{forum_link}}", forum_link)
return template.replace("{{content}}", body_html)