diff --git a/_config.yml b/_config.yml index 631c778..540766c 100644 --- a/_config.yml +++ b/_config.yml @@ -307,7 +307,6 @@ vendor: instantsearch: webcache|instantsearch.js@4.56.1/dist/instantsearch.production.min.js pace: webcache|pace-js@1.2.4/pace.min.js mermaid: webcache|mermaid@9.4.3/dist/mermaid.min.js - wow: webcache|wowjs@1.1.3/dist/wow.min.js firework: webcache|mouse-firework@0.0.4/dist/index.umd.js pjax: webcache|theme-shokax-pjax@0.0.3/dist/index.umd.js live2d: @@ -328,4 +327,4 @@ vendor: - webcache|@fortawesome/fontawesome-free@6.5.1/css/brands.min.css - webcache|@fortawesome/fontawesome-free@6.5.1/css/v5-font-face.min.css - webcache|@fortawesome/fontawesome-free@6.5.1/css/v4-font-face.min.css - animate: webcache|wowjs@1.1.3/css/libs/animate.css + aos: webcache|@reimujs/aos@0.0.1/dist/aos.css diff --git a/layout/_partial/after-footer.ejs b/layout/_partial/after-footer.ejs index bb9eca1..0343a9b 100644 --- a/layout/_partial/after-footer.ejs +++ b/layout/_partial/after-footer.ejs @@ -3,6 +3,25 @@ <%- js('js/script.js') %> +<% if (theme.animation.enable) { %> + <%- js('js/aos.js') %> + +<% } %> + <%- js({src: 'js/pjax_script.js', 'data-pjax': true}) %> + <%- css(vendorCdn(theme.vendor.css.aos)) %> <% } %> diff --git a/layout/_partial/post.ejs b/layout/_partial/post.ejs index 09f302b..eead807 100644 --- a/layout/_partial/post.ejs +++ b/layout/_partial/post.ejs @@ -1,5 +1,6 @@ <% if (even === true) { %> -
<% } else { %> - <% } %> diff --git a/layout/_partial/post/category.ejs b/layout/_partial/post/category.ejs index 85dfb37..942bfac 100644 --- a/layout/_partial/post/category.ejs +++ b/layout/_partial/post/category.ejs @@ -1,10 +1,10 @@ <% if (post.categories && post.categories.length) { %> -