Skip to content

Commit

Permalink
complate the blog_build.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Lvista committed Jan 10, 2025
1 parent 7a9388b commit 38d08aa
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 7 deletions.
27 changes: 21 additions & 6 deletions docs/blog/posts/blog_build.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
draft: true
# draft: true
comments: true
slug: site_build
title: "自建主页:始"
Expand Down Expand Up @@ -40,12 +40,16 @@ tags:

## Start your first homepage

只需要遵从[Material for MkDocs-getting-started](https://squidfunk.github.io/mkdocs-material/getting-started/#getting-started)
按照顺序一步步做下去即可搭建完成第一个HP,之后在[GitHub Pages][GP]上部署即可。
只需要遵从[Getting-started][qs]
按照顺序一步步做下去即可搭建完成第一个HP,之后在[GitHub Pages][GP]上部署即可。动手完成至[Getting-started][qs]中的[Publishing your site](https://squidfunk.github.io/mkdocs-material/publishing-your-site/#publishing-your-site)
章节即可完成基本部署。


??? example annotate "快速实践"

以下仅为“急急国王”或者需要尽快搭建的同学的参考,对于大多数人,
依然建议按照[Getting-started][qs]提供的教程进行.

- `pip install mkdocs-material`
- 下载官方提供的标准例子
[Blog][blog-template]
Expand All @@ -65,12 +69,17 @@ tags:
categories_pagination_per_page: 10
- tags
```
- 运行`mkdocs server`即可看到效果
- 运行`mkdocs server`即可在本地浏览效果
- [GitHub Pages][GP]快速部署
- 访问`user.github.io`即可看到结果
!!! tip "更喜欢我的?"
如果您更喜欢我的,可以看看[这篇](./buil_simi.md)

1. 因为该例子只给[Insiders Edition](https://squidfunk.github.io/mkdocs-material/insiders/),俗称高级用户使用
需要去掉部分功能才能运行。

[blog-template]: https://github.com/mkdocs-material/create-blog
[qs]: https://squidfunk.github.io/mkdocs-material/getting-started/#getting-started


??? note "你可能需要知道的"
Expand Down Expand Up @@ -146,4 +155,10 @@ tags:

## END

到此为止,
到此为止,你已经成功完成以下功能:

- [x] 构建一个网站
- [x] 将其部署在服务器上(GitPage托管服务)
- [x] 中国大陆也能访问

:partying_face:恭喜你,你又进步了!!
22 changes: 22 additions & 0 deletions docs/blog/posts/buil_simi.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
draft: true
comments: true
slug: build_sim
title: "Build A Simular Site"
date: 2025-01-10
categories:
- HP
- Blog
tags:
- 建站
- HTML
- Material for MkDocs
- Blog
- 个人网站
---
# 给我也整一个!

整一个与本站类似的网站

<!-- more -->

8 changes: 8 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,12 @@

[:octicons-arrow-right-24: 施工中](#)

- :material-tools:{ .lg .middle } __给我也整一个__

---

如果您认同我的博客设计,可以从这里快速部署

[:octicons-arrow-right-24: 开整](./blog/posts/buil_simi.md)

</div>
2 changes: 1 addition & 1 deletion overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ <h3>友情链接</h3>
</a>
</div>
<div class="content">
<a href="https://yangzhang.site/">
<a href="https://yangzhang.site/" target="_blank">
<h3>yangzhang's Site</h3>
</a>
</div>
Expand Down

0 comments on commit 38d08aa

Please sign in to comment.