From 4a7b83ae3b84d9b2c816e61d4497121d59ffd164 Mon Sep 17 00:00:00 2001 From: Gaspard Jankowiak Date: Fri, 8 Mar 2013 13:14:26 +0100 Subject: [PATCH] more flexible header configuration --- _config.yml | 5 +++++ _layouts/default.html | 29 ++++++++++++++++++++++++++--- en.markdown | 4 +++- index.markdown | 1 - 4 files changed, 34 insertions(+), 5 deletions(-) diff --git a/_config.yml b/_config.yml index b290479..cd5041a 100644 --- a/_config.yml +++ b/_config.yml @@ -9,3 +9,8 @@ safe: true pygments: true style: light + +title: 'Gaspard Jankowiak · Ceremade · Université Paris Dauphine' +header-title: 'Page personnelle de Gaspard Jankowiak' +header-subtitle: 'Thésard au Ceremade — Université Paris Dauphine' +header-homelink: '/' diff --git a/_layouts/default.html b/_layouts/default.html index ab26d1e..74c5bde 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -2,7 +2,13 @@ - {{ page:title }} + + {% if page:title %} + {{ page:title }} + {% else %} + {{ site:title }} + {% endif %} +