tiptap/docs/src/layouts/App/index.vue

50 lines
1.1 KiB
Vue
Raw Normal View History

2020-04-17 23:06:55 +08:00
<template>
<div class="app">
<header class="app__header">
<div class="app__inner">
2020-04-18 05:18:18 +08:00
<g-link class="app__logo" to="/">
{{ $static.metadata.siteName }}
</g-link>
2020-04-17 23:06:55 +08:00
</div>
</header>
<div class="app__content">
<div class="app__inner">
<div class="app__content-inner">
<aside class="app__sidebar">
2020-04-18 05:18:18 +08:00
<ul>
<li v-for="edge in $static.allPost.edges" :key="edge.node.id">
<g-link class="app__link" :to="edge.node.path">
{{ edge.node.title }}
</g-link>
</li>
</ul>
2020-04-17 23:06:55 +08:00
</aside>
<main class="app__main">
<slot/>
</main>
</div>
</div>
</div>
</div>
</template>
<static-query>
query {
metadata {
siteName
}
allPost {
edges {
node {
id
title
path
}
}
}
}
</static-query>
2020-04-18 05:18:18 +08:00
<style lang="scss" src="./fonts.scss"></style>
2020-04-17 23:06:55 +08:00
<style lang="scss" src="./base.scss" />
<style lang="scss" src="./style.scss" scoped />