mirror of
https://github.com/haiwen/seahub.git
synced 2025-07-16 00:06:11 +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
|
||||
|
||||
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,\
|
||||
SHOW_REPO_DOWNLOAD_BUTTON, SITE_ROOT, ENABLE_GUEST_INVITATION, \
|
||||
FAVICON_PATH, THUMBNAIL_SIZE_FOR_ORIGINAL, \
|
||||
@ -104,6 +104,7 @@ def base(request):
|
||||
result = {
|
||||
'seafile_version': SEAFILE_VERSION,
|
||||
'site_title': config.SITE_TITLE,
|
||||
'site_description': SITE_DESCRIPTION,
|
||||
'branding_css': BRANDING_CSS,
|
||||
'enable_branding_css': config.ENABLE_BRANDING_CSS,
|
||||
'favicon_path': favicon_path,
|
||||
|
@ -550,6 +550,9 @@ INIT_PASSWD = genpassword
|
||||
# browser tab title
|
||||
SITE_TITLE = 'Private Seafile'
|
||||
|
||||
# html head meta tag for search engine preview text
|
||||
SITE_DESCRIPTION = ''
|
||||
|
||||
# Base name used in email sending
|
||||
SITE_NAME = 'Seafile'
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
<title>{% block sub_title %}{% endblock %}{{ site_title }}</title>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
||||
<meta name="keywords" content="{% trans "File Collaboration Team Organization" %}" />
|
||||
{% if site_description != '' %}<meta name="description" content="{{ site_description }}" />{% endif %}
|
||||
{% block viewport %}
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||
{% endblock %}
|
||||
|
@ -7,6 +7,7 @@
|
||||
<title>{% block sub_title %}{% endblock %}{{ site_title }}</title>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
||||
<meta name="keywords" content="{% trans "File Collaboration Team Organization" %}" />
|
||||
{% if site_description != '' %}<meta name="description" content="{{ site_description }}" />{% endif %}
|
||||
{% block viewport %}
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||
{% endblock %}
|
||||
|
Loading…
Reference in New Issue
Block a user