Skip to content

Commit f5e7dfe

Browse files
author
reco_luan
committed
fix(vuepress-theme-reco): style in timeline page
1 parent dc22819 commit f5e7dfe

File tree

7 files changed

+177
-188
lines changed

7 files changed

+177
-188
lines changed

packages/vuepress-theme-reco/components/HomeBlog.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ export default {
133133
mounted () {
134134
this.recoShow = true
135135
this._setPage(this._getStoragePage())
136-
console.log(this)
137136
},
138137
methods: {
139138
// 获取当前页码

packages/vuepress-theme-reco/layouts/404.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<template>
2-
<div class="theme-container" v-if="!noFoundPageByTencent">
3-
<div class="content">
2+
<section class="theme-container" v-if="!noFoundPageByTencent">
3+
<article class="content">
44
<h1>404</h1>
55
<blockquote>{{ getMsg() }}</blockquote>
66
<router-link to="/">Take me home.</router-link>
7-
</div>
8-
</div>
7+
</article>
8+
</section>
99
</template>
1010

1111
<script>

packages/vuepress-theme-reco/layouts/Category.vue

Lines changed: 34 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,40 @@
11
<template>
2-
<div class="categories-wrapper">
3-
<!-- 公共布局 -->
4-
<Common :sidebar="false" :isComment="false">
5-
<!-- 分类集合 -->
6-
<ModuleTransition>
7-
<ul v-show="recoShowModule" class="category-wrapper">
8-
<li
9-
class="category-item"
10-
:class="title == item.name ? 'active': ''"
11-
v-for="(item, index) in this.$categories.list"
12-
:key="index">
13-
<router-link :to="item.path">
14-
<span class="category-name">{{ item.name }}</span>
15-
<span class="post-num" :style="{ 'backgroundColor': getOneColor() }">{{ item.pages.length }}</span>
16-
</router-link>
17-
</li>
18-
</ul>
19-
</ModuleTransition>
2+
<Common class="categories-wrapper" :sidebar="false" :isComment="false">
3+
<!-- 分类集合 -->
4+
<ModuleTransition>
5+
<ul v-show="recoShowModule" class="category-wrapper">
6+
<li
7+
class="category-item"
8+
:class="title == item.name ? 'active': ''"
9+
v-for="(item, index) in this.$categories.list"
10+
:key="index">
11+
<router-link :to="item.path">
12+
<span class="category-name">{{ item.name }}</span>
13+
<span class="post-num" :style="{ 'backgroundColor': getOneColor() }">{{ item.pages.length }}</span>
14+
</router-link>
15+
</li>
16+
</ul>
17+
</ModuleTransition>
2018

21-
<!-- 博客列表 -->
22-
<ModuleTransition delay="0.08">
23-
<note-abstract
24-
v-show="recoShowModule"
25-
class="list"
26-
:data="posts"
27-
:currentPage="currentPage"
28-
@currentTag="getCurrentTag"></note-abstract>
29-
</ModuleTransition>
19+
<!-- 博客列表 -->
20+
<ModuleTransition delay="0.08">
21+
<note-abstract
22+
v-show="recoShowModule"
23+
class="list"
24+
:data="posts"
25+
:currentPage="currentPage"
26+
@currentTag="getCurrentTag"></note-abstract>
27+
</ModuleTransition>
3028

31-
<!-- 分页 -->
32-
<ModuleTransition delay="0.16">
33-
<pagation
34-
class="pagation"
35-
:total="posts.length"
36-
:currentPage="currentPage"
37-
@getCurrentPage="getCurrentPage"></pagation>
38-
</ModuleTransition>
39-
</Common>
40-
</div>
29+
<!-- 分页 -->
30+
<ModuleTransition delay="0.16">
31+
<pagation
32+
class="pagation"
33+
:total="posts.length"
34+
:currentPage="currentPage"
35+
@getCurrentPage="getCurrentPage"></pagation>
36+
</ModuleTransition>
37+
</Common>
4138
</template>
4239

4340
<script>

packages/vuepress-theme-reco/layouts/Layout.vue

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
<template>
2-
<div>
3-
<Common>
4-
<component v-if="$frontmatter.home" :is="homeCom"/>
5-
<Page v-else :sidebar-items="sidebarItems"/>
6-
<Footer v-if="$frontmatter.home" class="footer" />
7-
</Common>
8-
</div>
2+
<Common>
3+
<component v-if="$frontmatter.home" :is="homeCom"/>
4+
<Page v-else :sidebar-items="sidebarItems"/>
5+
<Footer v-if="$frontmatter.home" class="footer" />
6+
</Common>
97
</template>
108

119
<script>

packages/vuepress-theme-reco/layouts/Tag.vue

Lines changed: 28 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,34 @@
11
<template>
2-
<div class="tag-wrapper">
3-
<!-- 公共布局 -->
4-
<Common :sidebar="false" :isComment="false">
5-
<!-- 标签集合 -->
6-
<ModuleTransition>
7-
<TagList
8-
v-show="recoShowModule"
9-
class="tags"
10-
:currentTag="$currentTags.key"
11-
@getCurrentTag="tagClick"></TagList>
12-
</ModuleTransition>
2+
<!-- 公共布局 -->
3+
<Common class="tag-wrapper" :sidebar="false" :isComment="false">
4+
<!-- 标签集合 -->
5+
<ModuleTransition>
6+
<TagList
7+
v-show="recoShowModule"
8+
class="tags"
9+
:currentTag="$currentTags.key"
10+
@getCurrentTag="tagClick"></TagList>
11+
</ModuleTransition>
1312

14-
<!-- 博客列表 -->
15-
<ModuleTransition delay="0.08">
16-
<note-abstract
17-
v-show="recoShowModule"
18-
class="list"
19-
:data="posts"
20-
:currentPage="currentPage"
21-
@currentTag="$currentTags.key"></note-abstract>
22-
</ModuleTransition>
13+
<!-- 博客列表 -->
14+
<ModuleTransition delay="0.08">
15+
<note-abstract
16+
v-show="recoShowModule"
17+
class="list"
18+
:data="posts"
19+
:currentPage="currentPage"
20+
@currentTag="$currentTags.key"></note-abstract>
21+
</ModuleTransition>
2322

24-
<!-- 分页 -->
25-
<ModuleTransition delay="0.16">
26-
<pagation
27-
class="pagation"
28-
:total="posts.length"
29-
:currentPage="currentPage"
30-
@getCurrentPage="getCurrentPage"></pagation>
31-
</ModuleTransition>
32-
</Common>
33-
</div>
23+
<!-- 分页 -->
24+
<ModuleTransition delay="0.16">
25+
<pagation
26+
class="pagation"
27+
:total="posts.length"
28+
:currentPage="currentPage"
29+
@getCurrentPage="getCurrentPage"></pagation>
30+
</ModuleTransition>
31+
</Common>
3432
</template>
3533

3634
<script>

packages/vuepress-theme-reco/layouts/Tags.vue

Lines changed: 27 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,33 @@
11
<template>
2-
<div class="tags-wrapper">
3-
<Common :sidebar="false" :isComment="false">
4-
<!-- 标签集合 -->
5-
<ModuleTransition>
6-
<TagList
7-
v-show="recoShowModule"
8-
:currentTag="currentTag"
9-
@getCurrentTag="tagClick"></TagList>
10-
</ModuleTransition>
2+
<Common class="tags-wrapper" :sidebar="false" :isComment="false">
3+
<!-- 标签集合 -->
4+
<ModuleTransition>
5+
<TagList
6+
v-show="recoShowModule"
7+
:currentTag="currentTag"
8+
@getCurrentTag="tagClick"></TagList>
9+
</ModuleTransition>
1110

12-
<!-- 博客列表 -->
13-
<ModuleTransition delay="0.08">
14-
<note-abstract
15-
v-show="recoShowModule"
16-
class="list"
17-
:data="$recoPosts"
18-
:currentPage="currentPage"
19-
:currentTag="currentTag"
20-
@currentTag="getCurrentTag"></note-abstract>
21-
</ModuleTransition>
11+
<!-- 博客列表 -->
12+
<ModuleTransition delay="0.08">
13+
<note-abstract
14+
v-show="recoShowModule"
15+
class="list"
16+
:data="$recoPosts"
17+
:currentPage="currentPage"
18+
:currentTag="currentTag"
19+
@currentTag="getCurrentTag"></note-abstract>
20+
</ModuleTransition>
2221

23-
<!-- 分页 -->
24-
<ModuleTransition delay="0.16">
25-
<pagation
26-
class="pagation"
27-
:total="$recoPosts.length"
28-
:currentPage="currentPage"
29-
@getCurrentPage="getCurrentPage"></pagation>
30-
</ModuleTransition>
31-
</Common>
32-
</div>
22+
<!-- 分页 -->
23+
<ModuleTransition delay="0.16">
24+
<pagation
25+
class="pagation"
26+
:total="$recoPosts.length"
27+
:currentPage="currentPage"
28+
@getCurrentPage="getCurrentPage"></pagation>
29+
</ModuleTransition>
30+
</Common>
3331
</template>
3432

3533
<script>

0 commit comments

Comments
 (0)