Skip to content

Commit

Permalink
fix: tag page
Browse files Browse the repository at this point in the history
  • Loading branch information
Renovamen committed Feb 4, 2021
1 parent b8f7c78 commit 1af9f5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 22 deletions.
22 changes: 3 additions & 19 deletions packages/theme-gungnir/layouts/Tag.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,18 @@
<PageHeader :page-info="getPageInfo" />
<div class="tags-wrapper">
<TagList
class="tags"
:current-tag="$currentTags.key"
@getCurrentTag="tagClick"
/>
<TagPostList
:data="posts"
class="list"
/>
<TagPostList :data="posts" />
</div>
</Common>
</template>

<script>
import Common from '@theme/components/Common'
import TagPostList from '@theme/components/TagPostList'
import TagList from '@theme/components/TagList'
import TagPostList from '@theme/components/TagPostList'
import PageHeader from '@theme/components/PageHeader'
import { getPostsByYear } from '@theme/utils/posts'
Expand Down Expand Up @@ -62,16 +58,4 @@ export default {
}
</script>

<style src="../styles/theme.styl" lang="stylus"></style>

<style lang="stylus" scoped>
@require '../styles/mode.styl'
.tag-wrapper
max-width 760px
margin 0 auto
padding 1.6rem 2.5rem 0
@media (max-width: $MQMobile)
.tag-wrapper
padding 1rem 0.9rem 0
</style>
<style src="@theme/styles/theme.styl" lang="stylus"></style>
6 changes: 3 additions & 3 deletions packages/theme-gungnir/layouts/Tags.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ export default {
}
</script>

<style src="../styles/theme.styl" lang="stylus"></style>

<style lang="stylus" scoped>
<style lang="stylus">
.tags-wrapper
max-width 760px
margin 0 auto
Expand All @@ -79,3 +77,5 @@ export default {
.tags-wrapper
padding 1rem 0.9rem 0
</style>

<style src="@theme/styles/theme.styl" lang="stylus"></style>

1 comment on commit 1af9f5b

@vercel
Copy link

@vercel vercel bot commented on 1af9f5b Feb 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.