mirror of
https://github.com/haiwen/seahub.git
synced 2025-07-16 16:21:48 +00:00
Add SITE_DESCRIPTION config variable
Which gets used in the html header <meta name="description" ... /> tag.
This commit is contained in:
parent
ab2930a60b
commit
46c6ee9017
@ -17,7 +17,7 @@ from constance import config
|
|||||||
|
|
||||||
import seaserv
|
import seaserv
|
||||||
|
|
||||||
from seahub.settings import SEAFILE_VERSION, \
|
from seahub.settings import SEAFILE_VERSION, SITE_DESCRIPTION, \
|
||||||
MAX_FILE_NAME, LOGO_PATH, BRANDING_CSS, LOGO_WIDTH, LOGO_HEIGHT,\
|
MAX_FILE_NAME, LOGO_PATH, BRANDING_CSS, LOGO_WIDTH, LOGO_HEIGHT,\
|
||||||
SHOW_REPO_DOWNLOAD_BUTTON, SITE_ROOT, ENABLE_GUEST_INVITATION, \
|
SHOW_REPO_DOWNLOAD_BUTTON, SITE_ROOT, ENABLE_GUEST_INVITATION, \
|
||||||
FAVICON_PATH, THUMBNAIL_SIZE_FOR_ORIGINAL, \
|
FAVICON_PATH, THUMBNAIL_SIZE_FOR_ORIGINAL, \
|
||||||
@ -104,6 +104,7 @@ def base(request):
|
|||||||
result = {
|
result = {
|
||||||
'seafile_version': SEAFILE_VERSION,
|
'seafile_version': SEAFILE_VERSION,
|
||||||
'site_title': config.SITE_TITLE,
|
'site_title': config.SITE_TITLE,
|
||||||
|
'site_description': SITE_DESCRIPTION,
|
||||||
'branding_css': BRANDING_CSS,
|
'branding_css': BRANDING_CSS,
|
||||||
'enable_branding_css': config.ENABLE_BRANDING_CSS,
|
'enable_branding_css': config.ENABLE_BRANDING_CSS,
|
||||||
'favicon_path': favicon_path,
|
'favicon_path': favicon_path,
|
||||||
|
@ -550,6 +550,9 @@ INIT_PASSWD = genpassword
|
|||||||
# browser tab title
|
# browser tab title
|
||||||
SITE_TITLE = 'Private Seafile'
|
SITE_TITLE = 'Private Seafile'
|
||||||
|
|
||||||
|
# html head meta tag for search engine preview text
|
||||||
|
SITE_DESCRIPTION = ''
|
||||||
|
|
||||||
# Base name used in email sending
|
# Base name used in email sending
|
||||||
SITE_NAME = 'Seafile'
|
SITE_NAME = 'Seafile'
|
||||||
|
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
<title>{% block sub_title %}{% endblock %}{{ site_title }}</title>
|
<title>{% block sub_title %}{% endblock %}{{ site_title }}</title>
|
||||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
||||||
<meta name="keywords" content="{% trans "File Collaboration Team Organization" %}" />
|
<meta name="keywords" content="{% trans "File Collaboration Team Organization" %}" />
|
||||||
|
{% if site_description != '' %}<meta name="description" content="{{ site_description }}" />{% endif %}
|
||||||
{% block viewport %}
|
{% block viewport %}
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
<title>{% block sub_title %}{% endblock %}{{ site_title }}</title>
|
<title>{% block sub_title %}{% endblock %}{{ site_title }}</title>
|
||||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
||||||
<meta name="keywords" content="{% trans "File Collaboration Team Organization" %}" />
|
<meta name="keywords" content="{% trans "File Collaboration Team Organization" %}" />
|
||||||
|
{% if site_description != '' %}<meta name="description" content="{{ site_description }}" />{% endif %}
|
||||||
{% block viewport %}
|
{% block viewport %}
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
Reference in New Issue
Block a user