-
Notifications
You must be signed in to change notification settings - Fork 21
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
Showing
14 changed files
with
210 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,5 @@ groups: | |
- Seayay | ||
- Big-Cake-jpg | ||
- bingxin666 | ||
- XieXiLin2 | ||
- HRxiaohu | ||
- bingling-sama |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { createContentLoader } from "vitepress" | ||
|
||
interface Post { | ||
title: string | ||
url: string | ||
date: string | ||
excerpt: string | undefined | ||
} | ||
declare const data: Post[] | ||
export { data } | ||
|
||
export default createContentLoader("blog/!(?|index).md", { | ||
// Options | ||
excerpt: true, | ||
transform(raw): Post[] { | ||
return raw.map(({ url, frontmatter, excerpt }) => ({ | ||
title: frontmatter.title, | ||
url, | ||
date: frontmatter.date, | ||
excerpt, | ||
})) | ||
}, | ||
}) |
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,71 @@ | ||
<script lang="ts" setup> | ||
import { data as posts } from "../../data/posts.data" | ||
</script> | ||
|
||
<template> | ||
<div class="container"> | ||
<div v-for="post in posts" :key="post.url"> | ||
<a style="color: inherit;" class="card" :href="post.url"> | ||
<span class="title">{{ post.title }}</span> | ||
<div class="content" v-if="post.excerpt" v-html="post.excerpt"></div> | ||
</a> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.container { | ||
position: relative; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
max-width: 1200px; | ||
flex-wrap: wrap; | ||
z-index: 1; | ||
} | ||
.container .card { | ||
position: relative; | ||
width: 15rem; | ||
height: 10rem; | ||
margin: 30px; | ||
box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5); | ||
border-radius: 15px; | ||
background: rgba(255, 255, 255, 0.1); | ||
overflow: hidden; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
border-top: 1px solid rgba(255, 255, 255, 0.5); | ||
border-left: 1px solid rgba(255, 255, 255, 0.5); | ||
backdrop-filter: blur(5px); | ||
} | ||
.container .card .title { | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
opacity: 1; | ||
transition: opacity 0.3s ease-out; | ||
} | ||
.container .card:hover .title { | ||
opacity: 0; | ||
} | ||
.container .card .content { | ||
padding: 10px; | ||
text-align: center; | ||
transform: translateY(100px); | ||
opacity: 0; | ||
transition: 0.5s; | ||
} | ||
.container .card:hover .content { | ||
transform: translateY(0px) scale(0.8); | ||
opacity: 1; | ||
} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
sidebar: false | ||
--- | ||
|
||
# 博客板块 | ||
|
||
本板块包含了 GlobeMC 团队的一些博客文章,有助于提升读者的 Debug 能力,有兴趣的读者可以关注一下。 | ||
|
||
--- | ||
|
||
<Posts /> | ||
|
||
## 关于文章 | ||
|
||
本博客文章均由 GlobeMC 团队及其成员撰写或约稿,所有内容由其实际具体撰写人负责,仅代表作者观点,如有谬误及不当处望海涵,可以在文章下评论区提出或发送电邮至编辑部部长邮箱<[email protected]>。 | ||
|
||
有意为 CrashMC Blog 供稿的话也可以电邮联系编辑部部长。 | ||
|
||
## 贡献提醒 | ||
|
||
:::warning | ||
所有内容创作者都应仔细阅读本文中的额外排版规范。 | ||
::: | ||
|
||
欢迎大家参与到 GlobeMC 团队的博客文章的编写中来,博客文章的排版规范以本文档排版规范为准。 | ||
|
||
有关文章撰写的注意事项如下: | ||
|
||
### Frontmatter | ||
|
||
Frontmatter 格式如下: | ||
|
||
```markdown | ||
--- | ||
sidebar: false # 禁用 Sidebar,推荐,可优化阅读体验 | ||
title: 文章标题 | ||
date: 2024-06-22 19:11:00 | ||
--- | ||
``` | ||
|
||
### 文章摘要 | ||
|
||
出现在第一个 `---` (不包括 Frontmatter)之前的部分为文章摘要,将显示在文章列表卡片中。 | ||
|
||
### 标题与小标题 | ||
|
||
一篇文章内应有且仅有一个 Markdown 一级标题 `#` 并其应尽量与 Frontmatter 中 `title` 字段相同。 | ||
|
||
文章小标题请使用 Markdown 二级标题 `##` 来表示,以便侧边栏目录自动总结。 | ||
|
||
### 引用资料 | ||
|
||
所有文章中引用的资料或站外资源都应在文末以特别板块的方式列出。 | ||
|
||
## 版权声明 | ||
|
||
本站所有文档及博客内容著作权均归 GlobeMC 及实际文章作者所有,所有内容遵循 [CC BY 4.0 协议](https://creativecommons.org/licenses/by/4.0/),转载请注明出处及原作者。 |
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 @@ | ||
--- | ||
sidebar: false | ||
title: Post1 | ||
date: 2021-01-01T00:00:00Z | ||
--- | ||
|
||
# Post1 | ||
|
||
Some text here. | ||
Write excerpts here, before the first `---` line. | ||
|
||
--- | ||
|
||
This is the end of the first post. |
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,12 @@ | ||
--- | ||
sidebar: false | ||
title: A vert lone title to test the display style | ||
date: 2021-01-01 00:00:00 | ||
--- | ||
|
||
# Post 2 | ||
|
||
some content here | ||
|
||
--- | ||
|
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