From f2555ee31c3d814526ccb5277e6ac7f95e25edca Mon Sep 17 00:00:00 2001 From: "Ivan.Nginx" Date: Thu, 20 Apr 2017 23:07:17 +0300 Subject: [PATCH 1/6] FIX: post excess scpaces. --- layout/post.swig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/post.swig b/layout/post.swig index 9f12a6295..091f3264f 100644 --- a/layout/post.swig +++ b/layout/post.swig @@ -3,7 +3,7 @@ {% import '_macro/sidebar.swig' as sidebar_template %} -{% block title %} {{ page.title }} | {{ config.title }} {% endblock %} +{% block title %}{{ page.title }} | {{ config.title }}{% endblock %} {% block page_class %}page-post-detail{% endblock %} From ad15305b1952572b836f16dde7c60b92746de6c0 Mon Sep 17 00:00:00 2001 From: "Ivan.Nginx" Date: Thu, 20 Apr 2017 23:11:10 +0300 Subject: [PATCH 2/6] FIX: page excess spaces. Note: i understand what afterthat fix block code is hard for edit, but spaces in Titles is no good for seo and they not may minified like other scripts, etc. --- layout/page.swig | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/layout/page.swig b/layout/page.swig index 8af0456de..bdaa45775 100644 --- a/layout/page.swig +++ b/layout/page.swig @@ -1,17 +1,7 @@ {% extends '_layout.swig' %} {% import '_macro/sidebar.swig' as sidebar_template %} -{% block title %} - {% set page_title_suffix = ' | ' + config.title %} - - {% if page.type === "categories" and not page.title %} - {{ __('title.category') + page_title_suffix }} - {% elif page.type === "tags" and not page.title %} - {{ __('title.tag') + page_title_suffix }} - {% else %} - {{ page.title + page_title_suffix }} - {% endif %} -{% endblock %} +{% block title %}{% set page_title_suffix = ' | ' + config.title %}{% if page.type === "categories" and not page.title %}{{ __('title.category') + page_title_suffix }}{% elif page.type === "tags" and not page.title %}{{ __('title.tag') + page_title_suffix }}{% else %}{{ page.title + page_title_suffix }}{% endif %}{% endblock %} {% block content %} From 63c9a335e2641054fd7c0f953e0ac7dcc454800e Mon Sep 17 00:00:00 2001 From: "Ivan.Nginx" Date: Thu, 20 Apr 2017 23:12:05 +0300 Subject: [PATCH 3/6] FIX: archive excess spaces. --- layout/archive.swig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/archive.swig b/layout/archive.swig index bbc81b43d..d07c68b7f 100644 --- a/layout/archive.swig +++ b/layout/archive.swig @@ -2,7 +2,7 @@ {% import '_macro/post-collapse.swig' as post_template %} {% import '_macro/sidebar.swig' as sidebar_template %} -{% block title %} {{ __('title.archive') }} | {{ config.title }} {% endblock %} +{% block title %}{{ __('title.archive') }} | {{ config.title }}{% endblock %} {% block page_class %} page-archive {% endblock %} From 937919916fd0d54480b25f6a9bf9a9f1a194c89d Mon Sep 17 00:00:00 2001 From: "Ivan.Nginx" Date: Thu, 20 Apr 2017 23:12:52 +0300 Subject: [PATCH 4/6] FIX: category excess spaces. --- layout/category.swig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/category.swig b/layout/category.swig index b94535531..380ac02fd 100644 --- a/layout/category.swig +++ b/layout/category.swig @@ -2,7 +2,7 @@ {% import '_macro/post-collapse.swig' as post_template %} {% import '_macro/sidebar.swig' as sidebar_template %} -{% block title %} {{ __('title.category') }}: {{ page.category }} | {{ config.title }} {% endblock %} +{% block title %}{{ __('title.category') }}: {{ page.category }} | {{ config.title }}{% endblock %} {% block content %} From b0ddf534acb4ca77947d35edbeb88b5d208ce482 Mon Sep 17 00:00:00 2001 From: "Ivan.Nginx" Date: Thu, 20 Apr 2017 23:13:30 +0300 Subject: [PATCH 5/6] FIX: schedule excess spaces. --- layout/schedule.swig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/schedule.swig b/layout/schedule.swig index e59587735..7136a212f 100644 --- a/layout/schedule.swig +++ b/layout/schedule.swig @@ -1,7 +1,7 @@ {% extends '_layout.swig' %} {% import '_macro/sidebar.swig' as sidebar_template %} -{% block title %} {{ __('title.schedule') }} | {{ config.title }} {% endblock %} +{% block title %}{{ __('title.schedule') }} | {{ config.title }}{% endblock %} {% block page_class %}page-post-detail page-calendar{% endblock %} From b2608ff5e9e27c79a3e97defe06dd18c1b1a8c45 Mon Sep 17 00:00:00 2001 From: "Ivan.Nginx" Date: Thu, 20 Apr 2017 23:14:19 +0300 Subject: [PATCH 6/6] FIX: tag excess spaces. --- layout/tag.swig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/tag.swig b/layout/tag.swig index b2da253c7..56a22e4ef 100644 --- a/layout/tag.swig +++ b/layout/tag.swig @@ -2,7 +2,7 @@ {% import '_macro/post-collapse.swig' as post_template %} {% import '_macro/sidebar.swig' as sidebar_template %} -{% block title %} {{ __('title.tag') }}: {{ page.tag }} | {{ config.title }} {% endblock %} +{% block title %}{{ __('title.tag') }}: {{ page.tag }} | {{ config.title }}{% endblock %} {% block content %}