mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-10-04 06:22:00 +08:00
1. Feature: the sidebar can auto scroll when the toc out of the screen
2. Fix: When the picture is loaded, the picture appears black frame
This commit is contained in:
1 parent
6c59f72ca2
commit
49a9995a3d
6 files changed
+84
-61
No files matched your search
+1
-1
@@ -8,4 +8,4 @@ block content
|
|||||||
+articleSort(page.posts)
|
+articleSort(page.posts)
|
||||||
include includes/pagination.pug
|
include includes/pagination.pug
|
||||||
#aside_content.aside_content
|
#aside_content.aside_content
|
||||||
include includes/aside.pug
|
include includes/aside.pug
|
||||||
@@ -1,22 +1,23 @@
|
|||||||
.card_widget.card-categories
|
if site.categories.length
|
||||||
.card-content
|
.card_widget.card-categories
|
||||||
.item_headline
|
.card-content
|
||||||
i.fa.fa-folder-open(aria-hidden="true")
|
.item_headline
|
||||||
span= _p('aside.card_categories')
|
i.fa.fa-folder-open(aria-hidden="true")
|
||||||
ul.aside_category_item
|
span= _p('aside.card_categories')
|
||||||
mixin displayCategories(parent = undefined)
|
ul.aside_category_item
|
||||||
- site.categories.find({ parent }).sort("name").each(function(category) {
|
mixin displayCategories(parent = undefined)
|
||||||
- var childCount = site.categories.find({ parent: category._id }).count();
|
- site.categories.find({ parent }).sort("name").each(function(category) {
|
||||||
li.aside_category_list
|
- var childCount = site.categories.find({ parent: category._id }).count();
|
||||||
a.aside_category_list_link(href=url_for(category.path))
|
li.aside_category_list
|
||||||
span.aside_category_list_name= category.name
|
a.aside_category_list_link(href=url_for(category.path))
|
||||||
span.aside_category_list_length= category.length
|
span.aside_category_list_name= category.name
|
||||||
|
span.aside_category_list_length= category.length
|
||||||
|
|
||||||
if childCount > 0
|
if childCount > 0
|
||||||
ul.aside_category_item.child
|
ul.aside_category_item.child
|
||||||
+displayCategories(category._id)
|
+displayCategories(category._id)
|
||||||
- })
|
- })
|
||||||
|
|
||||||
+displayCategories()
|
+displayCategories()
|
||||||
|
|
||||||
|
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
.card_widget.card-tags
|
if site.tags.length
|
||||||
.card-content
|
.card_widget.card-tags
|
||||||
.item_headline
|
.card-content
|
||||||
i.fa.fa-tags(aria-hidden="true")
|
.item_headline
|
||||||
span= _p('aside.card_tags')
|
i.fa.fa-tags(aria-hidden="true")
|
||||||
.card-tag-cloud!= tagcloud({min_font: 16, max_font: 24, amount: 200, color: true, start_color: '#999', end_color: '#000'})
|
span= _p('aside.card_tags')
|
||||||
|
.card-tag-cloud!= tagcloud({min_font: 16, max_font: 24, amount: 200, color: true, start_color: '#999', end_color: '#000'})
|
||||||
Loaded 3 of 6 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user