-
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from DuoSco/dev
Dev
- Loading branch information
Showing
13 changed files
with
170 additions
and
39 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
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,16 +1,13 @@ | ||
extends includes/layout.pug | ||
|
||
block content | ||
main.layout#content-inner | ||
div#category | ||
div#category-bar | ||
div.category-bar-items#category-bar-items | ||
include includes/widgets/home/categoryBar | ||
div.recent-posts#recent-posts | ||
- const currentCategory = page.category | ||
each post in site.posts.data | ||
each category in post.categories.data | ||
if category.name === currentCategory | ||
include includes/widgets/home/postList | ||
include includes/mixins/pagination | ||
include includes/widgets/aside/aside | ||
main.layout#content-inner | ||
div#category | ||
div#category-bar | ||
div.category-bar-items#category-bar-items | ||
include includes/widgets/home/categoryBar | ||
div.recent-posts#recent-posts | ||
each post in site.posts.find({ parent: { $exists: false } }).data | ||
include includes/widgets/home/postList | ||
include includes/mixins/pagination | ||
include includes/widgets/aside/aside |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
- const { envId, option, pageview } = theme.comment.waline | ||
- const { lazyload, count, type } = theme.comment | ||
|
||
script. | ||
async function initComment() { | ||
(() => { | ||
const waline = Waline.init(Object.assign({ | ||
el: '#comment', | ||
serverURL: '!{envId}', | ||
pageview: !{lazyload ? false : pageview}, | ||
dark: 'html[data-theme="dark"]', | ||
path: window.location.pathname, | ||
search: false, | ||
comment: !{lazyload ? false : count}, | ||
}, !{JSON.stringify(option)})) | ||
})() | ||
} |
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,19 +1,16 @@ | ||
extends includes/layout.pug | ||
|
||
block content | ||
main.layout#content-inner | ||
div#tag | ||
div#tag-page-tags | ||
each tag in site.tags.find({ parent: { $exists: false } }).data | ||
a(id=tag.name class=(tag.name === page.tag ? 'select' : '') href=url_for(tag.path)) | ||
span.tags-punctuation | ||
| #{tag.name} | ||
span.tagsPageCount #{tag.length} | ||
div.recent-posts#recent-posts | ||
- const currentTag = page.tag | ||
each post in site.posts.data | ||
each tag in post.tags.data | ||
if tag.name === currentTag | ||
include includes/widgets/home/postList | ||
include includes/mixins/pagination | ||
include includes/widgets/aside/aside | ||
main.layout#content-inner | ||
div#tag | ||
div#tag-page-tags | ||
each tag in site.tags.find({ parent: { $exists: false } }).data | ||
a(id=tag.name class=(tag.name === page.tag ? 'select' : '') href=url_for(tag.path)) | ||
span.tags-punctuation | ||
| #{tag.name} | ||
span.tagsPageCount #{tag.length} | ||
div.recent-posts#recent-posts | ||
each post in site.posts.find({ parent: { $exists: false } }).data | ||
include includes/widgets/home/postList | ||
include includes/mixins/pagination | ||
include includes/widgets/aside/aside |
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
File renamed without changes.
File renamed without changes.
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,75 @@ | ||
#comment | ||
.wl-sort li | ||
color var(--sco-gray) | ||
|
||
&.active | ||
color var(--sco-main) !important | ||
|
||
.wl-comment | ||
.wl-panel | ||
margin 0 !important | ||
|
||
.wl-footer | ||
.wl-info | ||
button | ||
background-color var(--sco-card-bg) | ||
border var(--style-border-always) | ||
color var(--sco-fontcolor) | ||
|
||
button:hover | ||
background-color var(--sco-main) | ||
border-color var(--sco-main) | ||
color var(--sco-card-bg) | ||
|
||
#wl-edit | ||
font-size 13px | ||
line-height 1.5 | ||
margin .75rem .25rem | ||
|
||
.wl-action | ||
transition .3s | ||
|
||
&:hover | ||
color var(--sco-main) | ||
|
||
.wl-meta-head | ||
.wl-count | ||
color var(--sco-gray) | ||
font-size 14px | ||
font-weight normal | ||
|
||
.wl-cards | ||
font-size 16px!important | ||
.wl-comment-actions | ||
button | ||
margin-right 15px | ||
font-size 18px | ||
|
||
&:hover | ||
color var(--sco-main) | ||
.wl-head .wl-nick | ||
font-size 20px !important | ||
color var(--sco-lighttext) | ||
font-weight bolder | ||
|
||
.wl-meta>span | ||
background var(--sco-gray) | ||
border-radius 5px | ||
color var(--sco-card-bg) | ||
margin-right 5px | ||
|
||
.wl-user | ||
img | ||
flex-shrink 0 | ||
height 2.5rem | ||
width 2.5rem | ||
overflow hidden | ||
text-align center | ||
border-radius 2.5rem | ||
border 2px solid var(--sco-white) | ||
|
||
[data-waline] a | ||
color var(--sco-main) !important | ||
|
||
.wl-content pre, .wl-content pre[class*=language-] | ||
padding .5rem!important |
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