diff --git a/layout/_layout.swig b/layout/_layout.swig index bbbb3da5fd..6e5a9f10e1 100644 --- a/layout/_layout.swig +++ b/layout/_layout.swig @@ -108,9 +108,10 @@ {% include '_third-party/search/index.swig' %} {% include '_third-party/analytics/lean-analytics.swig' %} {% include '_third-party/analytics/firestore.swig' %} - {% include '_third-party/seo/baidu-push.swig' %} - {% include '_third-party/schedule.swig' %} {% include '_third-party/math/index.swig' %} + {% include '_third-party/pdf.swig' %} + {% include '_third-party/baidu-push.swig' %} + {% include '_third-party/schedule.swig' %} {% include '_third-party/needsharebutton.swig' %} {% include '_third-party/rating.swig' %} {% include '_third-party/pangu.swig' %} @@ -118,6 +119,5 @@ {% include '_third-party/exturl.swig' %} {% include '_third-party/bookmark.swig' %} {% include '_third-party/copy-code.swig' %} - {% include '_third-party/pdf.swig' %} diff --git a/layout/_macro/post.swig b/layout/_macro/post.swig index a542d62363..a8f9e16c55 100644 --- a/layout/_macro/post.swig +++ b/layout/_macro/post.swig @@ -153,14 +153,14 @@ 0 - {% elseif theme.disqus.enable and theme.disqus.count %} + {% elif theme.disqus.enable and theme.disqus.count %} {{ comments() }} {{ __('post.comments_count') + __('symbol.colon') }} - {% elseif theme.changyan.enable and theme.changyan.appid and theme.changyan.appkey %} + {% elif theme.changyan.enable and theme.changyan.appid and theme.changyan.appkey %} {{ comments() }} {% if is_post() %} {{ __('post.comments_count') + __('symbol.colon') }} @@ -173,14 +173,14 @@ {% endif %} - {% elseif is_post() and theme.gitment.enable and theme.gitment.mint and theme.gitment.count %} + {% elif is_post() and theme.gitment.enable and theme.gitment.mint and theme.gitment.count %} {{ comments() }} {{ __('post.comments_count') + __('symbol.colon') }} - {% elseif (is_post() or theme.valine.comment_count) and theme.valine.enable and theme.valine.appid and theme.valine.appkey %} + {% elif (is_post() or theme.valine.comment_count) and theme.valine.enable and theme.valine.appid and theme.valine.appkey %} {{ comments() }} {{ __('post.comments_count') + __('symbol.colon') }} diff --git a/layout/_partials/header/menu.swig b/layout/_partials/header/menu.swig index 83edc6fc2b..2394449f0c 100644 --- a/layout/_partials/header/menu.swig +++ b/layout/_partials/header/menu.swig @@ -22,12 +22,12 @@ {%- endif -%} {%- endfor %} - {% set hasSearch = theme.swiftype_key || theme.algolia_search.enable || theme.tinysou_Key || theme.local_search.enable %} + {% set hasSearch = theme.swiftype_key || theme.algolia_search.enable || theme.local_search.enable %} {% if hasSearch %}