Skip to content

Commit

Permalink
Removed meta tags that were previously added
Browse files Browse the repository at this point in the history
Because someone (me) didn't know how to add them properly
  • Loading branch information
zecookiez committed Nov 13, 2020
1 parent c75abe2 commit b93f5a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions judge/template_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,7 @@ def misc_config(request):
def site_name(request):
return {'SITE_NAME': settings.SITE_NAME,
'SITE_LONG_NAME': settings.SITE_LONG_NAME,
'SITE_ADMIN_EMAIL': settings.SITE_ADMIN_EMAIL,
'CBOJ_META_KEYWORDS': settings.CBOJ_META_KEYWORDS,
'CBOJ_META_DESCRIPTION': settings.CBOJ_META_DESCRIPTION}
'SITE_ADMIN_EMAIL': settings.SITE_ADMIN_EMAIL}


def math_setting(request):
Expand Down
6 changes: 3 additions & 3 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<head>
<title>{% block title %}{{ title }} - {{ SITE_LONG_NAME }}{% endblock %}</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="keywords" content="{{ CBOJ_META_KEYWORDS }}">
{% if misc_config.meta_keywords %}
<meta name="keywords" content="{{ misc_config.meta_keywords }}">
{% endif %}
{% if meta_description %}
<meta name="description" content="{{ meta_description }}">
{% else %}
<meta name="description" content="{{ CBOJ_META_DESCRIPTION }}">
{% endif %}
<meta id="viewport" name="viewport" content="width=device-width, initial-scale=1">
<!-- Favicons-->
Expand Down

0 comments on commit b93f5a7

Please sign in to comment.