Permalink
Browse files

Improve SEO by adding description and keywords

  • Loading branch information...
lbain committed Oct 18, 2015
1 parent 98e7b67 commit 33d8e3adc537b885905a1fa66b75b85921cf2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 source/layouts/layout.haml
@@ -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"}

0 comments on commit 33d8e3a

Please sign in to comment.