From 4cf106620f2f8b5f5c8c5d15515ba8eb63ca760f Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Wed, 23 Oct 2019 14:04:57 +0200 Subject: [PATCH] layout: move header stuff to _includes/header.html --- _includes/header.html | 3 +++ _layouts/default.html | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 _includes/header.html diff --git a/_includes/header.html b/_includes/header.html new file mode 100644 index 0000000..06a1bc3 --- /dev/null +++ b/_includes/header.html @@ -0,0 +1,3 @@ +{% if site.title and site.title != page.title %} +

{{ site.title }}

+{% endif %} diff --git a/_layouts/default.html b/_layouts/default.html index af5eab3..e9b8b34 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -3,9 +3,8 @@ {% include head.html %}
- {% if site.title and site.title != page.title %} -

{{ site.title }}

- {% endif %} + + {% include header.html %} {{ content }}