Skip to content

Commit

Permalink
customize site description
Browse files Browse the repository at this point in the history
  • Loading branch information
Her Email authored and alphatownsman committed Dec 7, 2023
1 parent 9cc3ebf commit 8113344
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 2 additions & 0 deletions boofilsic/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()],
}
Expand Down
7 changes: 3 additions & 4 deletions catalog/templates/discover.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="og:title" content="{{ site_name }} - 联邦宇宙书影音游戏标注平台">
<meta property="og:title" content="{{ site_name }} - 分布式书影音播客游戏收藏评论交流社区">
<meta name="description"
property="og:description"
content="{{ site_name }}致力于为联邦宇宙居民提供一个自由、开放、互联的书籍、电影、音乐和游戏收藏评论空间">
content="{{ site_description }}">
<meta property="og:type" content="website">
<meta property="og:url" content="{{ site_url }}">
<meta property="og:image"
content="{{ request.scheme }}://{{ request.get_host }}{% static 'img/logo_square.jpg' %}">
<meta property="og:image" content="{{ site_logo }}">
<meta property="og:site_name" content="{{ site_name }}">
<title>{{ site_name }} - {% trans '发现' %}</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
Expand Down
1 change: 1 addition & 0 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 1 addition & 2 deletions users/templates/users/home_anonymous.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
content="{{ site_name }} - {{ identity.handler }}的主页">
<meta property="og:type" content="website">
<meta property="og:url" content="{{ request.build_absolute_uri }}">
<meta property="og:image"
content="{{ request.scheme }}://{{ request.get_host }}{% static 'img/logo_square.jpg' %}">
<meta property="og:image" content="{{ identity.avatar }}">
</head>
<body>
{% if identity.user.mastodon_account.url %}
Expand Down
7 changes: 3 additions & 4 deletions users/templates/users/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="og:title" content="{{ site_name }} - 联邦宇宙书影音游戏标注平台">
<meta property="og:title" content="{{ site_name }} - 分布式书影音播客游戏收藏评论交流社区">
<meta name="description"
property="og:description"
content="{{ site_name }}致力于为联邦宇宙居民提供一个自由、开放、互联的书籍、电影、音乐和游戏收藏评论空间">
content="{{ site_description }}">
<meta property="og:type" content="website">
<meta property="og:url" content="{{ site_url }}">
<meta property="og:image"
content="{{ request.scheme }}://{{ request.get_host }}{% static 'img/logo_square.jpg' %}">
<meta property="og:image" content="{{ site_logo }}">
<meta property="og:site_name" content="{{ site_name }}">
<title>{{ site_name }} - {% trans '登录' %}</title>
<script src="https://cdn.jsdelivr.net/npm/@tarekraafat/[email protected]/dist/autoComplete.min.js"></script>
Expand Down

0 comments on commit 8113344

Please sign in to comment.