Skip to content

Commit

Permalink
Improve SEO by adding description and keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
lbain committed Oct 18, 2015
1 parent 98e7b67 commit 33d8e3a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/layouts/layout.haml
Expand Up @@ -4,6 +4,11 @@
%meta{content: "width=device-width, initial-scale=1", name: "viewport"}/
%meta{charset: "utf-8"}
%meta{content: "IE=edge,chrome=1", "http-equiv" => "X-UA-Compatible"}
- if current_page.data.description
- raise "description too long" if current_page.data.description.length > 160
%meta{name: "description", content:"#{current_page.data.description}"}
- if current_page.data.keywords
%meta{name: "keywords", content:"#{current_page.data.keywords}"}
%link{href: "/images/favicon.ico", rel: "icon", type: "image/ico"}

%link{href: "http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700|Source+Code+Pro", rel: "stylesheet", type: "text/css"}
Expand Down

0 comments on commit 33d8e3a

Please sign in to comment.