https://github.com/gmt-china/gmt-china.org
GMT 中文社区主页
https://github.com/gmt-china/gmt-china.org
gmt
Last synced: 5 months ago
JSON representation
GMT 中文社区主页
- Host: GitHub
- URL: https://github.com/gmt-china/gmt-china.org
- Owner: gmt-china
- Created: 2016-09-29T07:05:58.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-11-25T10:06:32.000Z (7 months ago)
- Last Synced: 2025-11-28T16:25:17.443Z (7 months ago)
- Topics: gmt
- Language: Batchfile
- Homepage: https://gmt-china.org
- Size: 85.4 MB
- Stars: 23
- Watchers: 7
- Forks: 15
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GMT中文社区
[](https://github.com/gmt-china/gmt-china.org/actions/workflows/deploy.yml)
此项目是 [GMT中文社区](https://gmt-china.org) 主页的网站源码。
## 编译网站
社区主页用静态网站引擎 [Hugo](https://gohugo.io/) 构建,主题来自于
[Wowchemy](https://wowchemy.com/)。
1. 安装 Hugo
Hugo 具有跨平台、易安装、速度快的特点。
用户可以访问 Hugo 的 [Release](https://github.com/gohugoio/hugo/releases) 页面,
根据自己的操作系统,下载以 `hugo_extended` 开头的安装包,解压得到二进制文件
`hugo` 可直接使用。
2. 下载网站源码
```
$ git clone --depth=5 https://github.com/gmt-china/gmt-china.org.git
$ cd gmt-china.org/
```
3. 终端执行 `hugo server` 然后浏览器打开 `localhost:1313` 即可在本地查看网页效果
## 新增博文
博文位于 `content/blog` 目录下。每篇博文分别对应一个目录,目录名为 `YYYY-mm-dd-URL`。
博文正文、相关图片以及文件都放在该目录下。
博文内容使用 Markdown 格式书写,保存在博文目录下的 `index.md` 文件中。
需使用 UTF8 编码和 Linux 换行符。
`index.md` 文件的详细格式和语法请参考其他已有博文。