Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added Google site verification support

  • Loading branch information...
commit c2289c3ddf1af7c233b0a91852cba579fea35f06 1 parent 7447921
Nicholas Johnson authored
7 config.py
View
@@ -52,3 +52,10 @@
# If you want to use PubSubHubbub, supply the hub URL to use here.
hubbub_hub_url = 'http://pubsubhubbub.appspot.com/'
+
+# If you want to use Google Site verification, go to
+# https://www.google.com/webmasters/tools/ , add your site, choose the 'upload
+# an html file' method, then set the NAME of the file below.
+# Note that you do not need to download the file provided - just enter its name
+# here.
+google_site_verification = None
9 post_deploy.py
View
@@ -58,6 +58,15 @@ def regenerate_all(previous_version):
post_deploy_tasks.append(regenerate_all)
+def site_verification(previous_version):
+ static.set('/' + config.google_site_verification,
+ utils.render_template('site_verification.html'),
+ config.html_mime_type, False)
+
+if config.google_site_verification:
+ post_deploy_tasks.append(site_verification)
+
+
def run_deploy_task():
"""Attempts to run the per-version deploy task."""
task_name = 'deploy-%s' % os.environ['CURRENT_VERSION_ID'].replace('.', '-')
1  themes/default/site_verification.html
View
@@ -0,0 +1 @@
+google-site-verification: {{config.google_site_verification}}
Please sign in to comment.
Something went wrong with that request. Please try again.