customize site description
This commit is contained in:
parent
9cc3ebf0fa
commit
81133442f0
5 changed files with 10 additions and 10 deletions
|
@ -34,6 +34,7 @@ env = environ.FileAwareEnv(
|
|||
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_INFO = {
|
|||
"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()],
|
||||
}
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -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/autocomplete.js@10.2.7/dist/autoComplete.min.js"></script>
|
||||
|
|
Loading…
Add table
Reference in a new issue