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) { %> -
+
+
<% if (post.link) { %> <% } else { %> @@ -36,8 +37,10 @@
+
<% } else { %> -
+
+
<% if (post.link) { %> <% } else { %> @@ -71,4 +74,5 @@
+
<% } %> 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) { %> -
- <%- list_categories(post.categories, { - show_count: false, - class: 'article-category', - style: 'none', - separator: '' - }) %> +
+ <%- listCategories(post.categories, { + show_count: false, + class: 'article-category', + style: 'none', + separator: '' + }, "zoom-in") %>
<% } %> diff --git a/layout/_partial/post/date.ejs b/layout/_partial/post/date.ejs index 5417811..923a43f 100644 --- a/layout/_partial/post/date.ejs +++ b/layout/_partial/post/date.ejs @@ -1,5 +1,5 @@ -
-
diff --git a/layout/_partial/post/nav.ejs b/layout/_partial/post/nav.ejs index d2a3be9..7536016 100644 --- a/layout/_partial/post/nav.ejs +++ b/layout/_partial/post/nav.ejs @@ -1,5 +1,5 @@ <% if (post.prev || post.next) { %> -