Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
Move Facebook metadata values to settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
rjacobs31 committed Jan 31, 2017
1 parent 9fd0623 commit 6a49f29
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions oneplus/context_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ def social_media(request):
return {
'FB_APP_NUM': settings.FB_APP_NUM,
'FB_REDIRECT': settings.FB_REDIRECT,
'FB_SITE_TITLE': settings.FB_SITE_TITLE,
'FB_SITE_DESC': settings.FB_SITE_DESC,
}
4 changes: 2 additions & 2 deletions oneplus/templates/core/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<link rel="stylesheet" type="text/css" href="{% static "css/oneplus.css" %}">
<link rel="shortcut icon" href="{{ STATIC_URL }}img/favicon.ico" />
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
<meta property="og:description" content="dig-it is a mobisite designed to support Grade 10 - Grade 12 maths learners. Our fun, gamified, environment lets you practice and revise maths - with no pressure." />
<meta property="og:title" content="dig-it" />
<meta property="og:description" content="{{ FB_SITE_DESC }}" />
<meta property="og:title" content="{{ FB_SITE_TITLE }}" />
<meta property="og:type" content="website" />
</head>
<body>
Expand Down
3 changes: 3 additions & 0 deletions oneplusmvp/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,9 @@ def abspath(*args):
# Social media
FB_APP_NUM = '1400713283294375'
FB_REDIRECT = 'http://dig-it.me'
FB_SITE_TITLE = 'dig-it'
FB_SITE_DESC = 'dig-it is a mobisite designed to support Grade 10 - Grade 12 maths learners. ' + \
'Our fun, gamified, environment lets you practice and revise maths - with no pressure.'

TEMPLATE_CONTEXT_PROCESSORS += ('oneplus.context_processors.social_media',)

Expand Down

0 comments on commit 6a49f29

Please sign in to comment.