Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1dd3c93
commit 472699c
Showing
5 changed files
with
36 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<script setup lang="ts"> | ||
import { useRoute } from "vitepress"; | ||
import { data } from "./articlesmenu.data"; | ||
const route = useRoute(); | ||
</script> | ||
|
||
<template> | ||
<ul> | ||
<li v-for="article in data.menu[route.path].items" :key="article.link"> | ||
<a :href="article.link">{{ article.text }}</a> | ||
</li> | ||
</ul> | ||
</template> |
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,14 @@ | ||
import { sidebar } from "../../sidebar"; | ||
|
||
declare const data: { | ||
menu: { | ||
[key: string]: { base: string; items: { text: string; link: string }[] }; | ||
}; | ||
}; | ||
export { data }; | ||
|
||
export default { | ||
load() { | ||
return { menu: sidebar }; | ||
}, | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,7 @@ index: false | |
--- | ||
|
||
针对女性 / 性少数的暴力是一个社会性的问题。作为性少数,有必要了解一些防护的方法,以保护自己和他人的人身安全。 | ||
|
||
## 文章目录 | ||
|
||
<ArticlesMenu /> |