diff --git a/_includes/js-selector.html b/_includes/js-selector.html index 470ca43..c4e18ee 100644 --- a/_includes/js-selector.html +++ b/_includes/js-selector.html @@ -2,17 +2,10 @@ -{% assign urls = site.data.origin[type].jquery.js - | append: ',' - | append: site.data.origin[type].bootstrap.js - | append: ',' - | append: site.data.origin[type].search.js -%} +{% assign urls = site.data.origin[type].search.js %} -{% assign js_dist = '/assets/js/dist/' %} - {% if page.layout == 'post' or page.layout == 'page' or page.layout == 'home' %} {% assign urls = urls | append: ',' | append: site.data.origin[type]['lazy-polyfill'].js %} @@ -20,7 +13,7 @@ {% assign urls = urls | append: ',' - | append: site.data.origin[type]['magnific-popup'].js + | append: site.data.origin[type].glightbox.js | append: ',' | append: site.data.origin[type].clipboard.js %} @@ -33,7 +26,7 @@ or page.layout == 'category' or page.layout == 'tag' %} - {% assign locale = site.lang | split: '-' | first %} + {% assign locale = include.lang | split: '-' | first %} {% assign urls = urls | append: ',' @@ -67,11 +60,13 @@ {% assign js = 'commons' %} {% endcase %} -{% capture script %}{{ js_dist }}{{ js }}.min.js{% endcapture %} - +{% capture script %}/assets/js/dist/{{ js }}.min.js{% endcapture %} + + {% if page.math %} + - + {% endif %} @@ -166,10 +161,17 @@ {% endif %} {% endif %} +{% if page.mermaid %} + {% include mermaid.html %} +{% endif %} + {% if jekyll.environment == 'production' %} {% if site.pwa.enabled %} - + {% endif %} diff --git a/_layouts/post.html b/_layouts/post.html index 584e4e7..9ed61e6 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -9,9 +9,9 @@ tail_includes: - comments --- -{% include lang.html %} +{% include lang.html %} {% include toc-status.html %} -
+

{{ page.title }}

{% if page.description %} @@ -75,6 +75,45 @@ tail_includes:
+ {% if enable_toc %} + + + + + +
+
{{- page.title -}}
+ +
+
+
+ {% endif %} +
{{ content }}