diff --git a/languages/en.yml b/languages/en.yml index ce21ac512c..12b126af00 100644 --- a/languages/en.yml +++ b/languages/en.yml @@ -30,7 +30,6 @@ post: read_more: Read more untitled: Untitled sticky: Sticky - toc_empty: This post does not have a Table of Contents views: Views related_posts: Related Posts copy_button: Copy diff --git a/layout/_layout.swig b/layout/_layout.swig index 9bc868decb..12106ae9ce 100644 --- a/layout/_layout.swig +++ b/layout/_layout.swig @@ -13,36 +13,25 @@ {%- set pjax = ' pjax' %} {%- endif %} -{%- set html_class = 'theme-next ' + theme.scheme %} -{%- if theme.motion.enable %} - {%- set html_class = html_class + ' use-motion' %} -{%- endif %} - - + {{ partial('_partials/head/head.swig', {}, {cache: theme.cache.enable}) }} {% include '_partials/head/head-unique.swig' %} {{- next_inject('head') }} {% block title %}{% endblock %} - {% include '_third-party/analytics/index.swig' %} + {{ partial('_third-party/analytics/index.swig', {}, {cache: theme.cache.enable}) }} {{ partial('_scripts/noscript.swig', {}, {cache: theme.cache.enable}) }} -
+
- {%- if theme.bookmark.enable %} - - {%- endif %} - - {{ partial('_partials/github-banner.swig', {}, {cache: theme.cache.enable}) }} -
@@ -68,18 +57,7 @@
- {%- if theme.back2top.enable and not theme.back2top.sidebar %} -
- - 0% -
- {%- endif %} - - {%- if theme.reading_progress.enable %} -
- {%- endif %} - - {{ partial('_partials/share.swig', {}, {cache: theme.cache.enable}) }} + {{ partial('_partials/widgets.swig', {}, {cache: theme.cache.enable}) }}
{{ partial('_scripts/index.swig', {}, {cache: theme.cache.enable}) }} @@ -99,7 +77,7 @@ {%- if theme.pjax %}
- {% include '_partials/pjax.swig' %} + {{ partial('_scripts/pjax.swig', {}, {cache: theme.cache.enable}) }} {%- endif %} diff --git a/layout/_macro/sidebar.swig b/layout/_macro/sidebar.swig index 487086a2b6..dc0c42444d 100644 --- a/layout/_macro/sidebar.swig +++ b/layout/_macro/sidebar.swig @@ -11,50 +11,39 @@