mirror of
https://github.com/sendevia/website.git
synced 2026-03-05 23:32:45 +08:00
remove: remove useless navigation items and allposts layout
This commit is contained in:
@@ -93,9 +93,6 @@ export default defineConfig({
|
||||
siteVersion: packageJson.version || "0.0.0",
|
||||
navSegment: [
|
||||
{ text: "首页", icon: "home", link: "/" },
|
||||
{ text: "所有文章", icon: "list", link: "/posts" },
|
||||
{ text: "Markdown 示例", icon: "counter_1", link: "/posts/markdown-examples" },
|
||||
{ text: "API 示例", icon: "counter_2", link: "/posts/api-examples" },
|
||||
{ text: "AincradMix", icon: "borg", link: "/posts/AincradMix" },
|
||||
],
|
||||
} as any,
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
<script setup lang="ts">
|
||||
import { useAllPosts } from "../composables/useAllPosts";
|
||||
import { computed } from "vue";
|
||||
|
||||
const postsRef = useAllPosts(true);
|
||||
const postsList = computed(() => postsRef.value ?? []);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="page-allposts" aria-labelledby="all-posts-heading">
|
||||
<h1 id="allposts-heading">所有文章</h1>
|
||||
<section class="posts-list">
|
||||
<div class="posts-card" v-for="post in postsList" :key="post.url">
|
||||
<h2 class="post-title">
|
||||
<a :href="post.url">{{ post.title }}</a>
|
||||
</h2>
|
||||
<div class="post-meta">
|
||||
<span v-if="post.date" :datetime="post.date">{{ post.date }}</span>
|
||||
</div>
|
||||
<p v-if="post.description" class="post-desc">{{ post.description }}</p>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style lang="scss">
|
||||
@use "../styles/mixin";
|
||||
|
||||
.page-allposts {
|
||||
grid-column: 1 / 13;
|
||||
|
||||
.posts-card a {
|
||||
@include mixin.typescale-style("headline-small");
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1600px) {
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1200px) {
|
||||
}
|
||||
|
||||
@media screen and (max-width: 840px) {
|
||||
}
|
||||
|
||||
@media screen and (max-width: 600px) {
|
||||
}
|
||||
</style>
|
||||
@@ -1,5 +1,4 @@
|
||||
<script setup lang="ts">
|
||||
import AllPostsLayout from "./AllPosts.vue";
|
||||
import ArticleLayout from "./Article.vue";
|
||||
import NotFoundLayout from "./NotFound.vue";
|
||||
import SearchPostsLayout from "./SearchPosts.vue";
|
||||
@@ -57,7 +56,6 @@ async function updatePalette() {
|
||||
|
||||
const layoutMap = {
|
||||
article: ArticleLayout,
|
||||
posts: AllPostsLayout,
|
||||
search: SearchPostsLayout,
|
||||
} as const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user