Skip to content

Commit

Permalink
Revert "add google ad"
Browse files Browse the repository at this point in the history
This reverts commit 77c7407.
  • Loading branch information
crazyguitar committed Oct 7, 2018
1 parent b6ebd43 commit f2e0b5f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
11 changes: 9 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,18 @@ def find_key(token):
csp = {
"default-src": "'none'",
"style-src": ["'self'", "'unsafe-inline'"],
"script-src": ["'self'", "*", "'unsafe-inline'", "'unsafe-eval'"],
"script-src": [
"'self'",
"*.cloudflare.com",
"*.googletagmanager.com",
"*.google-analytics.com",
"'unsafe-inline'",
"'unsafe-eval'",
],
"form-action": "'self'",
"base-uri": "'self'",
"img-src": "*",
"frame-src": ["ghbtns.com", "googleads.g.doubleclick.net"],
"frame-src": "ghbtns.com",
"frame-ancestors": "'none'",
"object-src": "'none'",
}
Expand Down
9 changes: 0 additions & 9 deletions docs/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,5 @@
gtag('config', '{{ tracking_id }}');
</script>
{% endif -%}
{%- if google_ad_client %}
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "{{ google_ad_client }}",
enable_page_level_ads: true
});
</script>
{% endif -%}
{% endblock %}
{% set css_files = css_files + [ "_static/style.css" ] %}
5 changes: 1 addition & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,7 @@
# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
html_title = "pysheeet"
html_context = {
"tracking_id": os.environ.get("TRACKING_ID"),
"google_ad_client" : os.environ.get("GOOGLE_AD_CLIENT")
}
html_context = {"tracking_id": os.environ.get("TRACKING_ID")}

# A shorter title for the navigation bar. Default is the same as html_title.
#html_short_title = None
Expand Down

0 comments on commit f2e0b5f

Please sign in to comment.