renamed google_site_search to google_custom_search

This commit is contained in:
B Mathis 2009-11-11 17:06:21 -06:00
parent b6f89c421f
commit 50e218dd66
2 changed files with 4 additions and 4 deletions

View File

@ -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/).

View File

@ -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