mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-18 18:33:42 +00:00
Remove extra blank lines
This commit is contained in:
parent
54b4b4cc56
commit
2eabd8d854
@ -197,8 +197,8 @@ chat:
|
||||
language_switcher: false
|
||||
|
||||
footer:
|
||||
# Specify the date when the site was setup. If not defined, current year will be used.
|
||||
#since: 2015
|
||||
# Specify the year when the site was setup. If not defined, current year will be used.
|
||||
#since: 2020
|
||||
|
||||
# Icon between year and copyright info.
|
||||
icon:
|
||||
@ -406,7 +406,7 @@ github_banner:
|
||||
# light | light italic | normal | normal italic | bold | bold italic
|
||||
# Be aware that setting too much fonts will cause site running slowly
|
||||
# ---------------------------------------------------------------
|
||||
# To avoid space between header and sidebar in scheme Pisces / Gemini, Web Safe fonts are recommended for `global` (and `title`):
|
||||
# Web Safe fonts are recommended for `global` (and `title`):
|
||||
# Arial | Tahoma | Helvetica | Times New Roman | Courier New | Verdana | Georgia | Palatino | Garamond | Comic Sans MS | Trebuchet MS
|
||||
# ---------------------------------------------------------------
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
<html lang="{{ config.language }}">
|
||||
<head>
|
||||
{{ partial('_partials/head/head.njk', {}, {cache: theme.cache.enable}) }}
|
||||
{% include '_partials/head/head-unique.njk' %}
|
||||
{%- include '_partials/head/head-unique.njk' -%}
|
||||
<title>{% block title %}{% endblock %}</title>
|
||||
{{ partial('_third-party/analytics/index.njk', {}, {cache: theme.cache.enable}) }}
|
||||
{{ partial('_scripts/noscript.njk', {}, {cache: theme.cache.enable}) }}
|
||||
@ -13,7 +13,9 @@
|
||||
|
||||
<main class="main">
|
||||
<header class="header" itemscope itemtype="http://schema.org/WPHeader">
|
||||
<div class="header-inner">{% include '_partials/header/index.njk' %}</div>
|
||||
<div class="header-inner">
|
||||
{%- include '_partials/header/index.njk' -%}
|
||||
</div>
|
||||
{%- if theme.sidebar.display !== 'remove' %}
|
||||
{% block sidebar %}{% endblock %}
|
||||
{%- endif %}
|
||||
@ -22,15 +24,15 @@
|
||||
{{ partial('_partials/widgets.njk', {}, {cache: theme.cache.enable}) }}
|
||||
|
||||
<div class="main-inner {% block class %}{% endblock %}">
|
||||
{% include '_partials/header/sub-menu.njk' %}
|
||||
{%- include '_partials/header/sub-menu.njk' -%}
|
||||
{% block content %}{% endblock %}
|
||||
{% include '_partials/comments.njk' %}
|
||||
{%- include '_partials/comments.njk' -%}
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer class="footer">
|
||||
<div class="footer-inner">
|
||||
{% include '_partials/languages.njk' %}
|
||||
{%- include '_partials/languages.njk' -%}
|
||||
{{ partial('_partials/footer.njk', {}, {cache: theme.cache.enable}) }}
|
||||
</div>
|
||||
</footer>
|
||||
@ -42,8 +44,8 @@
|
||||
{%- if theme.pjax %}
|
||||
<div class="pjax">
|
||||
{%- endif %}
|
||||
{% include '_third-party/math/index.njk' %}
|
||||
{% include '_third-party/quicklink.njk' %}
|
||||
{%- include '_third-party/math/index.njk' -%}
|
||||
{%- include '_third-party/quicklink.njk' -%}
|
||||
|
||||
{{- next_inject('bodyEnd') }}
|
||||
{%- if theme.pjax %}
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
{%- endif %}
|
||||
|
||||
<div class="copyright">
|
||||
{% set copyright_year = date(null, 'YYYY') %}
|
||||
{%- set copyright_year = date(null, 'YYYY') %}
|
||||
© {% if theme.footer.since and theme.footer.since != copyright_year %}{{ theme.footer.since }} – {% endif %}
|
||||
<span itemprop="copyrightYear">{{ copyright_year }}</span>
|
||||
<span class="with-love">
|
||||
|
||||
@ -44,7 +44,7 @@
|
||||
|
||||
<link rel="stylesheet" href="{{ theme.vendors.fontawesome }}">
|
||||
|
||||
{%-if theme.motion.enable %}
|
||||
{%- if theme.motion.enable %}
|
||||
<link rel="stylesheet" href="{{ theme.vendors.animate_css }}">
|
||||
{%- endif %}
|
||||
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
{%- if page.description %}
|
||||
<div class="post-description">{{ page.description }}</div>
|
||||
{%- endif %}
|
||||
{% include '_partials/page/breadcrumb.njk' %}
|
||||
{%- include '_partials/page/breadcrumb.njk' -%}
|
||||
</div>
|
||||
|
||||
</header>
|
||||
|
||||
@ -2,9 +2,9 @@
|
||||
<div class="search-pop-overlay">
|
||||
<div class="popup search-popup">
|
||||
{%- if theme.algolia_search.enable %}
|
||||
{% include 'algolia-search.njk' %}
|
||||
{%- include 'algolia-search.njk' -%}
|
||||
{% elif theme.local_search.enable %}
|
||||
{% include 'localsearch.njk' %}
|
||||
{%- include 'localsearch.njk' -%}
|
||||
{%- endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{% include 'vendors.njk' %}
|
||||
{%- include 'vendors.njk' -%}
|
||||
|
||||
{{- next_js('utils.js') }}
|
||||
{%- if theme.motion.enable %}
|
||||
@ -14,5 +14,5 @@
|
||||
{{- next_js('bookmark.js') }}
|
||||
{%- endif %}
|
||||
{%- if theme.pjax %}
|
||||
{% include 'pjax.njk' %}
|
||||
{%- include 'pjax.njk' -%}
|
||||
{%- endif %}
|
||||
|
||||
6
layout/_third-party/analytics/index.njk
vendored
6
layout/_third-party/analytics/index.njk
vendored
@ -1,3 +1,3 @@
|
||||
{% include 'google-analytics.njk' %}
|
||||
{% include 'baidu-analytics.njk' %}
|
||||
{% include 'growingio.njk' %}
|
||||
{%- include 'google-analytics.njk' -%}
|
||||
{%- include 'baidu-analytics.njk' -%}
|
||||
{%- include 'growingio.njk' -%}
|
||||
|
||||
24
layout/_third-party/index.njk
vendored
24
layout/_third-party/index.njk
vendored
@ -1,19 +1,19 @@
|
||||
{% include 'baidu-push.njk' %}
|
||||
{%- include 'baidu-push.njk' -%}
|
||||
|
||||
{% include 'rating.njk' %}
|
||||
{%- include 'rating.njk' -%}
|
||||
|
||||
{%- if theme.algolia_search.enable %}
|
||||
{% include 'search/algolia-search.njk' %}
|
||||
{% elif theme.swiftype_key %}
|
||||
{% include 'search/swiftype.njk' %}
|
||||
{% elif theme.local_search.enable %}
|
||||
{% include 'search/localsearch.njk' %}
|
||||
{%- include 'search/algolia-search.njk' -%}
|
||||
{%- elif theme.swiftype_key %}
|
||||
{%- include 'search/swiftype.njk' -%}
|
||||
{%- elif theme.local_search.enable %}
|
||||
{%- include 'search/localsearch.njk' -%}
|
||||
{%- endif %}
|
||||
|
||||
{% include 'chat/chatra.njk' %}
|
||||
{% include 'chat/tidio.njk' %}
|
||||
{%- include 'chat/chatra.njk' -%}
|
||||
{%- include 'chat/tidio.njk' -%}
|
||||
|
||||
{% include 'tags/pdf.njk' %}
|
||||
{% include 'tags/mermaid.njk' %}
|
||||
{%- include 'tags/pdf.njk' -%}
|
||||
{%- include 'tags/mermaid.njk' -%}
|
||||
|
||||
{% include 'nprogress.njk' %}
|
||||
{%- include 'nprogress.njk' -%}
|
||||
|
||||
4
layout/_third-party/math/index.njk
vendored
4
layout/_third-party/math/index.njk
vendored
@ -12,9 +12,9 @@
|
||||
|
||||
{%- if theme.math.every_page or is_index_has_math or page.mathjax %}
|
||||
{%- if theme.math.mathjax.enable %}
|
||||
{% include '_third-party/math/mathjax.njk' %}
|
||||
{%- include '_third-party/math/mathjax.njk' -%}
|
||||
{% elif theme.math.katex.enable %}
|
||||
{% include '_third-party/math/katex.njk' %}
|
||||
{%- include '_third-party/math/katex.njk' -%}
|
||||
{%- endif %}
|
||||
{%- endif %}
|
||||
{%- endif %}
|
||||
|
||||
8
layout/_third-party/statistics/index.njk
vendored
8
layout/_third-party/statistics/index.njk
vendored
@ -1,4 +1,4 @@
|
||||
{% include 'busuanzi-counter.njk' %}
|
||||
{% include 'cnzz-analytics.njk' %}
|
||||
{% include 'firestore.njk' %}
|
||||
{% include 'lean-analytics.njk' %}
|
||||
{%- include 'busuanzi-counter.njk' -%}
|
||||
{%- include 'cnzz-analytics.njk' -%}
|
||||
{%- include 'firestore.njk' -%}
|
||||
{%- include 'lean-analytics.njk' -%}
|
||||
|
||||
@ -39,7 +39,7 @@
|
||||
{### END ARCHIVE BLOCK ###}
|
||||
{#########################}
|
||||
|
||||
{% include '_partials/pagination.njk' %}
|
||||
{%- include '_partials/pagination.njk' -%}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
|
||||
@ -27,7 +27,7 @@
|
||||
{### END CATEGORY BLOCK ###}
|
||||
{##########################}
|
||||
|
||||
{% include '_partials/pagination.njk' %}
|
||||
{%- include '_partials/pagination.njk' -%}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
{{ partial('_macro/post.njk', {post: post, is_index: true}) }}
|
||||
{%- endfor %}
|
||||
|
||||
{% include '_partials/pagination.njk' %}
|
||||
{%- include '_partials/pagination.njk' -%}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
|
||||
@ -23,17 +23,17 @@
|
||||
{### PAGE BLOCK ###}
|
||||
{##################}
|
||||
<div class="post-block" lang="{{ page.lang or config.language }}">
|
||||
{% include '_partials/page/page-header.njk' %}
|
||||
{%- include '_partials/page/page-header.njk' -%}
|
||||
{#################}
|
||||
{### PAGE BODY ###}
|
||||
{#################}
|
||||
<div class="post-body{%- if page.direction and page.direction.toLowerCase() === 'rtl' %} rtl{%- endif %}">
|
||||
{%- if page.type === 'tags' %}
|
||||
{% include '_partials/page/tags.njk' %}
|
||||
{%- include '_partials/page/tags.njk' -%}
|
||||
{% elif page.type === 'categories' %}
|
||||
{% include '_partials/page/categories.njk' %}
|
||||
{%- include '_partials/page/categories.njk' -%}
|
||||
{% elif page.type === 'schedule' %}
|
||||
{% include '_partials/page/schedule.njk' %}
|
||||
{%- include '_partials/page/schedule.njk' -%}
|
||||
{% else %}
|
||||
{{ page.content }}
|
||||
{%- endif %}
|
||||
@ -42,7 +42,7 @@
|
||||
{### END PAGE BODY ###}
|
||||
{#####################}
|
||||
</div>
|
||||
{% include '_partials/page/breadcrumb.njk' %}
|
||||
{%- include '_partials/page/breadcrumb.njk' -%}
|
||||
{######################}
|
||||
{### END PAGE BLOCK ###}
|
||||
{######################}
|
||||
|
||||
@ -27,7 +27,7 @@
|
||||
{### END TAG BLOCK ###}
|
||||
{#####################}
|
||||
|
||||
{% include '_partials/pagination.njk' %}
|
||||
{%- include '_partials/pagination.njk' -%}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user