From ef8216de604acb29eb699db53381058e3dc808f8 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Fri, 6 Mar 2015 18:37:15 +0800 Subject: [PATCH] Styles and metas --- _config.yml | 5 +++++ _includes/head.html | 41 ++++++++++++++++++++++++++++++++++---- _includes/site-header.html | 2 +- 3 files changed, 43 insertions(+), 5 deletions(-) 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 @@