From 0d04a0fa505d6f7dfe2439ad5f84027fda90236b Mon Sep 17 00:00:00 2001 From: Greg Wilson Date: Fri, 15 Apr 2016 14:29:39 -0400 Subject: [PATCH] Improving layouts --- _includes/main_title.html | 1 + _layouts/index.html | 2 +- _layouts/page.html | 2 +- _layouts/reference.html | 3 +-- 4 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 _includes/main_title.html diff --git a/_includes/main_title.html b/_includes/main_title.html new file mode 100644 index 0000000..4640300 --- /dev/null +++ b/_includes/main_title.html @@ -0,0 +1 @@ +

{{ site.title }}{% if page.title %}: {{ page.title }}{% endif %}

diff --git a/_layouts/index.html b/_layouts/index.html index 5f2d0e4..e2ba207 100644 --- a/_layouts/index.html +++ b/_layouts/index.html @@ -1,5 +1,5 @@ --- layout: base --- -

{{ site.title }}

+{% include main_title.html %} {{ content }} diff --git a/_layouts/page.html b/_layouts/page.html index e10a0fc..3df0456 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -1,5 +1,5 @@ --- layout: base --- -

{{ site.title }}: {{ page.title }}

+{% include main_title.html %} {{content}} diff --git a/_layouts/reference.html b/_layouts/reference.html index ec422a2..e470cf7 100644 --- a/_layouts/reference.html +++ b/_layouts/reference.html @@ -1,6 +1,5 @@ --- -layout: base -title: Reference +layout: page permalink: /reference/ --- {% include all_keypoints.html %} -- GitLab