diff --git a/README.markdown b/README.markdown index 53ba686..22789a1 100644 --- a/README.markdown +++ b/README.markdown @@ -65,7 +65,7 @@ Octopress has built in support for the Disqus commenting system, using the "univ disqus_short_name: yourdisqusname ### Google Custom Search -First setup a custom search for your site at [http://google.com/cse/](http://google.com/cse/) then add your custom\_search\_id to the YAML block in the default layout. +First setup a custom search for your site at [http://google.com/cse/](http://google.com/cse/) then add your google\_custom\_search\_id to the YAML block in the default layout. ### Google Analytics The analytics tracking scripts are already integrated into Octopress, all you have to do is register your site at [http://google.com/analytics/](http://google.com/analytics/). diff --git a/source/_layouts/default.haml b/source/_layouts/default.haml index 4842c79..412979e 100644 --- a/source/_layouts/default.haml +++ b/source/_layouts/default.haml @@ -11,7 +11,7 @@ delicious_count: 3 full_url: disqus_short_name: -google_site_search_id: +google_custom_search_id: google_analytics: true --- @@ -40,10 +40,10 @@ google_analytics: true #header .page_width %a.title(href="/")=page.blog_title - - if page.respond_to? :google_site_search_id + - if page.respond_to? :google_custom_search_id #search %form(action="http://www.google.com/cse" id="cse-search-box") - %input(type="hidden" name="cx" value="#{page.google_site_search_id}") + %input(type="hidden" name="cx" value="#{page.google_custom_search_id}") %input(type="hidden" name="ie" value="UTF-8") %input#q(type="text" name="q") #nav