Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Commented and removed special char from head title.

  • Loading branch information...
commit 5e398485b6a372760f0c40f34d03dc1ffb58e0f6 1 parent ff133ca
@djnawara authored
Showing with 10 additions and 2 deletions.
  1. +10 −2 app/views/shared/_head.html.haml
View
12 app/views/shared/_head.html.haml
@@ -1,3 +1,4 @@
+- ###############################
- # build SEO meta tags
%meta{'http-equiv' => 'Content-Type', :content => 'text/html;charset=UTF-8'}
- if @content_for_description.blank?
@@ -12,22 +13,27 @@
- keywords = yield(:keywords)
%meta{:name => "description", :content => description }
%meta{:name => "keywords", :content => keywords }
+- ###############################
- # build our browser title
%title
= Natto.site_title
- if @content_for_title.blank?
- unless @page.nil? || @page.title.blank?
- »
+ = " - "
= @page.title
- else
- »
+ = " - "
= yield :title
+- ###############################
+- # link our stylesheets
= stylesheet_link_tag 'application', 'administration', :plugin => 'natto'
/[if lte IE 7]
= stylesheet_link_tag "ie"
- if !@page.nil?
- @page.get_sass.each do |file|
= stylesheet_link_tag file
+- ###############################
+- # include javascript
= javascript_include_tag 'prototype', 'effects', 'dragdrop', 'controls', 'admin', 'application', "tiny_mce/embed.js", :cache => false, :plugin => 'natto'
= yield :javascript
:javascript
@@ -35,4 +41,6 @@
#{'admin = new DJN.Admin();' if logged_in? && current_user.is_administrator?}
#{yield :onReady}
});
+- ###############################
+- # yield for extras
= yield :head
Please sign in to comment.
Something went wrong with that request. Please try again.