Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Making sure proper title is showing

  • Loading branch information...
commit 39e33e46d3a630d941692ea9b8eb68e9c0e6e4a0 1 parent e970b60
Abel Rios authored
4 config/config.yml
... ... @@ -1,8 +1,8 @@
1 1 # Title and subheading for your site. Used on the home page and in page
2 2 # titles.
3 3 #
4   -title: "The Burger Douche"
5   -subtitle: "We ♥ Burgers"
  4 +title: "We ♥ Burgers"
  5 +subtitle: "The Burger Douche"
6 6
7 7 # You should really specify your content's author when generating an
8 8 # Atom feed. Specify at least one of name, uri or email, and Nesta will
12 themes/douchey/views/js_raw.haml
@@ -2,7 +2,9 @@
2 2 <script language="Javascript" type="text/javascript">
3 3 var webSearch;
4 4
5   - $( function(){
  5 + $( init() );
  6 +
  7 + function init(){
6 8 webSearch = new google.search.WebSearch();
7 9 webSearch.setSearchCompleteCallback( this, webSearchComplete, [webSearch] );
8 10 webSearch.setSiteRestriction( 'http://burgerdouche.com' );
@@ -16,8 +18,8 @@
16 18 search( query );
17 19 }
18 20 }
19   - });
20   -
  21 + };
  22 +
21 23 function webSearchComplete ( searcher, searchNum )
22 24 {
23 25 var c = document.getElementById( 'search-results' );
@@ -42,7 +44,7 @@
42 44
43 45 res.innerHTML += '<p class="archives"><a href="#{base_url}/articles/">View Archives</a></p>';
44 46 c.appendChild( res );
45   - }
  47 + };
46 48
47 49 function search( query )
48 50 {
@@ -54,7 +56,7 @@
54 56 $( "#search-results" ).hide();
55 57 }
56 58 webSearch.execute( query );
57   - }
  59 + };
58 60
59 61 $( '#query' ).keyup( function(){
60 62 var query = $( this ).val();
2  themes/douchey/views/layout.haml
@@ -6,7 +6,7 @@
6 6 %meta(name="description" content=@description)
7 7 - if @keywords
8 8 %meta(name="keywords" content=@keywords)
9   - %title= @title << " | " << @subtitle
  9 + %title= @subtitle
10 10 <!--[if ! lte IE 6]><!-->
11 11 %link(href="http://fonts.googleapis.com/css?family=PT+Sans|Arvo:regular,italic,bold,bolditalic&subset=latin" rel="stylesheet")
12 12 %link(href="#{base_url}/css/layout.css" media="screen" rel="stylesheet")

0 comments on commit 39e33e4

Please sign in to comment.
Something went wrong with that request. Please try again.