This repository has been archived by the owner on May 13, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: using GlobalLayout to simplify implementation
- Loading branch information
Showing
12 changed files
with
58 additions
and
121 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
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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<template> | ||
<div id="vuperess-theme-blog__global-layout"> | ||
<Header/> | ||
<div class="content-wrapper"> | ||
<DefaultGlobalLayout/> | ||
</div> | ||
<Footer/> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import GlobalLayout from '@app/components/GlobalLayout.vue' | ||
import Header from '@theme/components/Header.vue' | ||
import Footer from '@theme/components/Header.vue' | ||
export default { | ||
components: { | ||
DefaultGlobalLayout: GlobalLayout, | ||
Header, | ||
Footer, | ||
}, | ||
} | ||
</script> | ||
|
||
<style lang="stylus"> | ||
.content-wrapper | ||
padding-top 160px | ||
min-height calc(100vh - 80px - 60px) | ||
max-width 740px | ||
padding-left 20vw | ||
</style> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,5 @@ | ||
<template> | ||
<BaseListLayout :pagination="pagination"/> | ||
<BaseListLayout :pagination="$pagination"/> | ||
</template> | ||
|
||
<script> | ||
import BaseListLayout from './BaseListLayout' | ||
export default { | ||
components: { BaseListLayout }, | ||
computed: { | ||
pagination() { | ||
if (this.$route.meta.pid) { | ||
return this.$pagination | ||
} | ||
return this.$getPagination('post') | ||
}, | ||
}, | ||
} | ||
</script> | ||
<style src="prismjs/themes/prism-okaidia.css"></style> |
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