diff --git a/_config.yml b/_config.yml index 8797ce220..28c88f194 100644 --- a/_config.yml +++ b/_config.yml @@ -27,3 +27,8 @@ defaults: layout: "default" meta: name: "Cheatsheets" + title: Cheatsheets + description: "A collection of cheatsheets I've written." + hostname: ricostacruz.com + author: Rico Sta. Cruz + url: http://ricostacruz.com/cheatsheets diff --git a/_includes/head.html b/_includes/head.html index b30598f36..eb1843f4c 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -1,8 +1,41 @@ - - + + - - {{ page.title }} cheatsheet + + + {% if page.title %} + {{ page.title }} — {{ site.meta.title }} + + + + {% else %} + {{ site.meta.title }} + + + + {% endif %} + + {% if page.meta.description %} + + + {% else if page.url == '/index.html' && site.meta.description %} + + + {% endif %} + + {% if page.url != '/index.html' %} + + + + + {% endif %} + + + + + + {% if site.analytics %}{% endif %} + diff --git a/_includes/site-header.html b/_includes/site-header.html index f3ad011f2..addcdd8a9 100644 --- a/_includes/site-header.html +++ b/_includes/site-header.html @@ -1,6 +1,6 @@