diff --git a/.env.sample b/.env.sample index 241e3b9064..ddcef2aed6 100644 --- a/.env.sample +++ b/.env.sample @@ -30,6 +30,8 @@ MAX_CHECKIN_TRAFFIC=209715200 # 网站title TITLE=谜之屋 SUBTITLE=秘密的小屋 +KEYWORDS=秘密的小屋 +DESCRIPTION=秘密的小屋 # 用户邀请返利比例 INVITE_PERCENT=0.2 # 用户能生成的邀请码数量 diff --git a/configs/default/sites.py b/configs/default/sites.py index 27c2985fd4..f85255fc82 100644 --- a/configs/default/sites.py +++ b/configs/default/sites.py @@ -33,6 +33,8 @@ # 网站title TITLE = os.getenv("TITLE", "谜之屋") SUBTITLE = os.getenv("SUBTITLE", "秘密的小屋") +KEYWORDS = os.getenv("KEYWORDS", "") +DESCRIPTION = os.getenv("DESCRIPTION", "") # 用户邀请返利比例 INVITE_PERCENT = float(os.getenv("INVITE_PERCENT", 0.2)) diff --git a/templates/base.html b/templates/base.html index 81573b0b09..87bd1370bd 100644 --- a/templates/base.html +++ b/templates/base.html @@ -5,6 +5,8 @@
{% load static %}