From 61540ac09abbb4f127f975601764956f3d3182e1 Mon Sep 17 00:00:00 2001 From: "Ivan.Nginx" Date: Wed, 15 Feb 2017 18:18:50 +0300 Subject: [PATCH 1/2] Fix `description` for `seo` option in #1311. If `seo` is true main site description will be passed by `config.subtitle` option in main Hexo config. But, there is duplicate of description by sidebar code (author & description). So, we will separate main site description and author description and u may use `theme.signature` option for author description (signature). --- layout/_macro/sidebar.swig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/layout/_macro/sidebar.swig b/layout/_macro/sidebar.swig index 231eea984..89e9eca77 100644 --- a/layout/_macro/sidebar.swig +++ b/layout/_macro/sidebar.swig @@ -29,7 +29,11 @@ src="{{ url_for( theme.avatar | default(theme.images + '/avatar.gif') ) }}" alt="{{ theme.author }}" />

{{ theme.author }}

-

{{ theme.description }}

+ {% if theme.seo %} +

{{ theme.signature }}

+ {% else %} +

{{ theme.description }}

+ {% endif %}