-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
90 changed files
with
8,066 additions
and
7,211 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 |
---|---|---|
@@ -1 +1,2 @@ | ||
node_modules | ||
node_modules | ||
coverage |
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 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx --no-install commitlint --edit $1 |
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 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx --no-install lint-staged |
This file was deleted.
Oops, something went wrong.
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,16 @@ | ||
extends layout/layout.pug | ||
|
||
block content | ||
include utils/mixins.pug | ||
#archive | ||
.article-sort-title= _p('page.articles') + ' - ' + site.posts.length | ||
+articleSort(page.posts) | ||
#archive.card | ||
#archive-title= _p('page.articles') + ' - ' + site.posts.length | ||
#archive-content | ||
- let tmp | ||
each article in page.posts.data | ||
- let year = date(article.date, 'YYYY') | ||
if tmp !== year | ||
- tmp = year | ||
.archive-content-item.year= year | ||
.archive-content-item | ||
time= date(article.date) | ||
a(href=url_for(article.path))= article.title || 'No Title' | ||
include partial/pagination.pug | ||
//- #aside_content.aside_content | ||
//- include partial/aside.pug |
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,4 +1,7 @@ | ||
extends layout/layout.pug | ||
|
||
block content | ||
include partial/article.pug | ||
if page.type === 'categories' | ||
#category.card!= list_categories() | ||
else | ||
include partial/article.pug |
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,17 +1,4 @@ | ||
main | ||
if body | ||
div!= body | ||
else | ||
block content | ||
block content | ||
|
||
//- toolbar | ||
i.fa.fa-arrow-up#go-up(aria-hidden="true") | ||
section#rightside.rightside | ||
if theme.readmode.enable && is_post() | ||
i#readmode.fa.fa-book(title=_p('rightside.readmode_title')) | ||
i#font_plus.fa.fa-plus(title=_p('rightside.font_plus_title')) | ||
i#font_minus.fa.fa-minus(title=_p('rightside.font_minus_title')) | ||
if theme.translate && theme.translate.enable | ||
a#translateLink.translate_chn_to_cht(href="javascript:translatePage();" title=_p('rightside.translate_title'))= theme.translate.default | ||
if theme.nightshift.enable | ||
i#nightshift.fa.fa-moon-o.nightshift(title=_p('rightside.night_mode_title')) | ||
include ../partial/toolbar |
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,4 +1,5 @@ | ||
include ../utils/variables.pug | ||
include ../utils/mixins.pug | ||
|
||
doctype html | ||
html(lang=config.language) | ||
|
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,24 +1,4 @@ | ||
extends layout/layout.pug | ||
|
||
block content | ||
if page.type === 'tags' | ||
.tag-cloud | ||
.tag-cloud__title= _p('page.tag') | ||
| - | ||
span.tag-cloud__amount= site.tags.length | ||
.tag-cloud-tags!= tagcloud({min_font: 20, max_font: 43, amount: 200, color: true, start_color: '#A4D8FA', end_color: '#0790E8'}) | ||
if page.comments !== false | ||
include partial/comment.pug | ||
|
||
else if page.type === 'categories' | ||
#post-content.category-content | ||
.category-lists | ||
.category__title= _p('page.category') | ||
| - | ||
span.category__amount= site.categories.length | ||
div!= list_categories() | ||
if page.comments !== false | ||
include partial/comment.pug | ||
|
||
else | ||
#page!= page.content | ||
#page!= page.content |
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.