初始化:创建基于 Nuxt Content 的博客项目
This commit is contained in:
17
layouts/default.vue
Normal file
17
layouts/default.vue
Normal file
@@ -0,0 +1,17 @@
|
||||
<template>
|
||||
<div class="min-h-screen bg-gray-100">
|
||||
<header class="bg-white shadow">
|
||||
<nav class="container mx-auto px-4 py-6">
|
||||
<NuxtLink to="/" class="text-2xl font-bold text-gray-800">我的博客</NuxtLink>
|
||||
</nav>
|
||||
</header>
|
||||
<main class="container mx-auto px-4 py-8">
|
||||
<slot />
|
||||
</main>
|
||||
<footer class="bg-white shadow mt-8">
|
||||
<div class="container mx-auto px-4 py-6 text-center text-gray-600">
|
||||
© 2025 我的博客. 保留所有权利.
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
</template>
|
Reference in New Issue
Block a user