diff --git a/boofilsic/settings.py b/boofilsic/settings.py index 9587f104..37d6b1a8 100644 --- a/boofilsic/settings.py +++ b/boofilsic/settings.py @@ -34,6 +34,7 @@ NEODB_USER_ICON=(str, "/s/img/avatar.svg"), NEODB_SITE_INTRO=(str, ""), NEODB_SITE_HEAD=(str, ""), + NEODB_SITE_DESCRIPTION=(str, "一个自由、开放、互联的书籍、电影、音乐和游戏收藏评论交流社区"), # Links in site footer NEODB_SITE_LINKS=(dict, {}), # Invite only mode @@ -164,6 +165,7 @@ "site_icon": env("NEODB_SITE_ICON"), "user_icon": env("NEODB_USER_ICON"), "site_intro": env("NEODB_SITE_INTRO"), + "site_description": env("NEODB_SITE_DESCRIPTION"), "site_head": env("NEODB_SITE_HEAD"), "site_links": [{"title": k, "url": v} for k, v in env("NEODB_SITE_LINKS").items()], } diff --git a/catalog/templates/discover.html b/catalog/templates/discover.html index ec5f58b2..837dc2b9 100644 --- a/catalog/templates/discover.html +++ b/catalog/templates/discover.html @@ -10,14 +10,13 @@ - + + content="{{ site_description }}"> - + {{ site_name }} - {% trans '发现' %} {% include "common_libs.html" with jquery=0 v2=1 %} diff --git a/compose.yml b/compose.yml index a4942262..a6ccb6d3 100644 --- a/compose.yml +++ b/compose.yml @@ -25,6 +25,7 @@ x-shared: NEODB_SITE_ICON: NEODB_USER_ICON: NEODB_SITE_LINKS: + NEODB_SITE_DESCRIPTION: NEODB_ADMIN_USERNAMES: NEODB_INVITE_ONLY: NEODB_LOGIN_ENABLE_EMAIL_ONLY: diff --git a/users/templates/users/home_anonymous.html b/users/templates/users/home_anonymous.html index 5f20b9f9..acba19e5 100644 --- a/users/templates/users/home_anonymous.html +++ b/users/templates/users/home_anonymous.html @@ -15,8 +15,7 @@ content="{{ site_name }} - {{ identity.handler }}的主页"> - + {% if identity.user.mastodon_account.url %} diff --git a/users/templates/users/login.html b/users/templates/users/login.html index ad737738..7a2c207d 100644 --- a/users/templates/users/login.html +++ b/users/templates/users/login.html @@ -5,14 +5,13 @@ - + + content="{{ site_description }}"> - + {{ site_name }} - {% trans '登录' %}