From 2b8926488bfb967857dde6ff30fbcae891167b8a Mon Sep 17 00:00:00 2001 From: vonavi Date: Wed, 2 Jul 2014 21:01:17 +0300 Subject: [PATCH] Add the page title to meta-tag 'title'. --- _layouts/default.html | 6 +++++- _plugins/2-generate_reviews.rb | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/_layouts/default.html b/_layouts/default.html index 2827da3..1372ca6 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -8,7 +8,11 @@ - {{ site.title }} + {% if page.url == "/" %} + {{ site.title }} + {% else %} + {{ page.title }} • {{ site.title }} + {% endif %} diff --git a/_plugins/2-generate_reviews.rb b/_plugins/2-generate_reviews.rb index 7e23170..c149ff0 100644 --- a/_plugins/2-generate_reviews.rb +++ b/_plugins/2-generate_reviews.rb @@ -29,7 +29,7 @@ module Jekyll # Add the YAML header def generate_header - @buffer += "---\nlayout: page\n---\n" + @buffer += "---\nlayout: page\ntitle: Обзоры\n---\n" end # Add a string containing the review entries