Skip to content

Commit

Permalink
Include Slack app ID if set
Browse files Browse the repository at this point in the history
  • Loading branch information
jacebrowning committed Mar 27, 2019
1 parent 655f164 commit 1779b07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions memegen/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class ProductionConfig(Config):

FACEBOOK_APP_ID = os.getenv('FACEBOOK_APP_ID')
GOOGLE_ANALYTICS_TID = os.getenv('GOOGLE_ANALYTICS_TID')
SLACK_APP_ID = os.getenv('SLACK_APP_ID')


class StagingCongif(ProductionConfig):
Expand Down
3 changes: 3 additions & 0 deletions memegen/templates/share.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
<meta property="og:image:width" content="{{ config['FACEBOOK_IMAGE_WIDTH'] }}" />
<meta property="og:image:height" content="{{ config['FACEBOOK_IMAGE_HEIGHT'] }}" />
<meta property="og:description" content="{{ title | safe }}" />
{% if config['SLACK_APP_ID'] %}
<meta name="slack-app-id" content="{{ config['SLACK_APP_ID'] }}">
{% endif %}
{%- endblock -%}

{% block content %}
Expand Down

0 comments on commit 1779b07

Please sign in to comment.