Skip to content

Commit 636b209

Browse files
author
reco_luan
committed
fix: tags page $ timeline page
And update comments version.
1 parent 517619d commit 636b209

File tree

3 files changed

+30
-28
lines changed

3 files changed

+30
-28
lines changed

layouts/Tags.vue

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
<template>
22
<div class="tags-wrapper" :class="recoShow?'reco-show': 'reco-hide'">
3-
<Common :sidebar="false" :isComment="false"></Common>
4-
<TagList :currentTag="currentTag" @getCurrentTag="tagClick"></TagList>
5-
<note-abstract
6-
class="list"
7-
:data="posts"
8-
:currentPage="currentPage"
9-
:currentTag="currentTag"
10-
@currentTag="getCurrentTag"></note-abstract>
11-
12-
<pagation
13-
class="pagation"
14-
:total="posts.length"
15-
:currentPage="currentPage"
16-
@getCurrentPage="getCurrentPage"></pagation>
3+
<Common :sidebar="false" :isComment="false">
4+
<TagList :currentTag="currentTag" @getCurrentTag="tagClick"></TagList>
5+
<note-abstract
6+
class="list"
7+
:data="posts"
8+
:currentPage="currentPage"
9+
:currentTag="currentTag"
10+
@currentTag="getCurrentTag"></note-abstract>
11+
12+
<pagation
13+
class="pagation"
14+
:total="posts.length"
15+
:currentPage="currentPage"
16+
@getCurrentPage="getCurrentPage"></pagation>
17+
</Common>
1718
</div>
1819
</template>
1920

layouts/TimeLines.vue

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
<template>
22
<div>
3-
<Common :sidebar="false" :isComment="false"></Common>
4-
<ul class="timeline-wrapper">
5-
<li class="desc">Yesterday Once More!</li>
6-
<li v-for="(item, index) in formatPagesArr" :key="index">
7-
<h3 class="year">{{item.year}}</h3>
8-
<ul class="year-wrapper">
9-
<li v-for="(subItem, subIndex) in item.data" :key="subIndex">
10-
<span class="date">{{dateFormat(subItem.frontmatter.date)}}</span>
11-
<span class="title" @click="go(subItem.path)">{{subItem.title}}</span>
12-
</li>
13-
</ul>
14-
</li>
15-
</ul>
3+
<Common :sidebar="false" :isComment="false">
4+
<ul class="timeline-wrapper">
5+
<li class="desc">Yesterday Once More!</li>
6+
<li v-for="(item, index) in formatPagesArr" :key="index">
7+
<h3 class="year">{{item.year}}</h3>
8+
<ul class="year-wrapper">
9+
<li v-for="(subItem, subIndex) in item.data" :key="subIndex">
10+
<span class="date">{{dateFormat(subItem.frontmatter.date)}}</span>
11+
<span class="title" @click="go(subItem.path)">{{subItem.title}}</span>
12+
</li>
13+
</ul>
14+
</li>
15+
</ul>
16+
</Common>
1617
</div>
1718

1819
</template>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"@vuepress-reco/vuepress-plugin-pagation": "^1.0.3",
3232
"@vuepress-reco/vuepress-plugin-screenfull": "^1.0.0",
3333
"@vuepress-reco/vuepress-plugin-ga": "^1.0.2",
34-
"@vuepress-reco/vuepress-plugin-comments": "1.0.1",
34+
"@vuepress-reco/vuepress-plugin-comments": "^1.0.2",
3535
"@vuepress/plugin-medium-zoom": "1.2.0",
3636
"@vuepress/plugin-blog": "1.3.0",
3737
"leancloud-storage": "3.13.2",

0 commit comments

Comments
 (0)