-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: remove wow * fix: hover style error * feat: add animation for archive * fix: disconnect observe * fix: fix hover border-radius
- Loading branch information
Showing
30 changed files
with
410 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -307,7 +307,6 @@ vendor: | |
instantsearch: webcache|[email protected]/dist/instantsearch.production.min.js | ||
pace: webcache|[email protected]/pace.min.js | ||
mermaid: webcache|[email protected]/dist/mermaid.min.js | ||
wow: webcache|[email protected]/dist/wow.min.js | ||
firework: webcache|[email protected]/dist/index.umd.js | ||
pjax: webcache|[email protected]/dist/index.umd.js | ||
live2d: | ||
|
@@ -328,4 +327,4 @@ vendor: | |
- webcache|@fortawesome/[email protected]/css/brands.min.css | ||
- webcache|@fortawesome/[email protected]/css/v5-font-face.min.css | ||
- webcache|@fortawesome/[email protected]/css/v4-font-face.min.css | ||
animate: webcache|[email protected]/css/libs/animate.css | ||
aos: webcache|@reimujs/[email protected]/dist/aos.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<% if (post.categories && post.categories.length) { %> | ||
<div class="article-category wow slideInLeft"> | ||
<%- list_categories(post.categories, { | ||
show_count: false, | ||
class: 'article-category', | ||
style: 'none', | ||
separator: '' | ||
}) %> | ||
<div class="article-category"> | ||
<%- listCategories(post.categories, { | ||
show_count: false, | ||
class: 'article-category', | ||
style: 'none', | ||
separator: '' | ||
}, "zoom-in") %> | ||
</div> | ||
<% } %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<% if (post.tags && post.tags.length) { %> | ||
<%- list_tags(post.tags, { | ||
<%- listTags(post.tags, { | ||
show_count: false, | ||
class: 'article-tag' | ||
}) %> | ||
}, 'zoom-in') %> | ||
<% } %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
<% if (site.posts.length) { %> | ||
<div class="widget-wrap wow fadeInRight"> | ||
<h3 class="widget-title"><%= __('archive_a') %></h3> | ||
<div class="widget"> | ||
<%- list_archives({show_count: theme.show_count, type: theme.archive_type}) %> | ||
<div class="widget-wrapper"> | ||
<div class="widget-wrap" data-aos="fade-up"> | ||
<h3 class="widget-title"><%= __('archive_a') %></h3> | ||
<div class="widget"> | ||
<%- list_archives({show_count: theme.show_count, type: theme.archive_type}) %> | ||
</div> | ||
</div> | ||
</div> | ||
<% } %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
<% if (site.categories.length) { %> | ||
<div class="widget-wrap wow fadeInRight"> | ||
<h3 class="widget-title"><%= __('categories') %></h3> | ||
<div class="widget"> | ||
<%- list_categories({show_count: theme.show_count}) %> | ||
<div class="widget-wrapper"> | ||
<div class="widget-wrap" data-aos="fade-up"> | ||
<h3 class="widget-title"><%= __('categories') %></h3> | ||
<div class="widget"> | ||
<%- list_categories({show_count: theme.show_count}) %> | ||
</div> | ||
</div> | ||
</div> | ||
<% } %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
<% if (site.posts.length) { %> | ||
<div class="widget-wrap wow fadeInRight"> | ||
<h3 class="widget-title"><%= __('recent_posts') %></h3> | ||
<div class="widget"> | ||
<ul> | ||
<% site.posts.sort('date', -1).limit(theme.recent_posts_limits).each((post) => { %> | ||
<li> | ||
<a href="<%- url_for(post.path) %>"><%= post.title || '(no title)' %></a> | ||
</li> | ||
<% }) %> | ||
</ul> | ||
<div class="widget-wrapper"> | ||
<div class="widget-wrap" data-aos="fade-up"> | ||
<h3 class="widget-title"><%= __('recent_posts') %></h3> | ||
<div class="widget"> | ||
<ul> | ||
<% site.posts.sort('date', -1).limit(theme.recent_posts_limits).each((post) => { %> | ||
<li> | ||
<a href="<%- url_for(post.path) %>"><%= post.title || '(no title)' %></a> | ||
</li> | ||
<% }) %> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
<% } %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
<% if (site.tags.length) { %> | ||
<div class="widget-wrap wow fadeInRight"> | ||
<h3 class="widget-title"><%= __('tags') %></h3> | ||
<div class="widget"> | ||
<%- list_tags({show_count: theme.show_count}) %> | ||
<div class="widget-wrapper"> | ||
<div class="widget-wrap" data-aos="fade-up"> | ||
<h3 class="widget-title"><%= __('tags') %></h3> | ||
<div class="widget"> | ||
<%- list_tags({show_count: theme.show_count}) %> | ||
</div> | ||
</div> | ||
</div> | ||
<% } %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
<% if (site.tags.length) { %> | ||
<div class="widget-wrap wow fadeInRight"> | ||
<h3 class="widget-title"><%= __('tagcloud') %></h3> | ||
<div class="widget tagcloud"> | ||
<%- tagcloud() %> | ||
<div class="widget-wrapper"> | ||
<div class="widget-wrap" data-aos="fade-up"> | ||
<h3 class="widget-title"><%= __('tagcloud') %></h3> | ||
<div class="widget tagcloud"> | ||
<%- tagcloud() %> | ||
</div> | ||
</div> | ||
</div> | ||
<% } %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
hexo.extend.helper.register("listCategories", (...args) => { | ||
const result = hexo.extend.helper.store.list_categories.apply(hexo, args); | ||
return result.replace(/<a class="([^"]+)" href="([^"]+)">/g, `<a class="$1" href="$2" data-aos="${args[2]}">`); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
hexo.extend.helper.register('listTags', (...args) => { | ||
const result = hexo.extend.helper.store.list_tags.apply(hexo, args); | ||
return result.replace(/<li class="([^"]+)">/g, `<li class="$1" data-aos="${args[2]}">`); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.