Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xnzone/theme-fd
a simple hugo theme named theme-fd
https://github.com/xnzone/theme-fd
hugo hugo-theme theme
Last synced: 3 days ago
JSON representation
a simple hugo theme named theme-fd
- Host: GitHub
- URL: https://github.com/xnzone/theme-fd
- Owner: xnzone
- License: mit
- Created: 2021-11-26T05:13:55.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-09-25T10:22:53.000Z (over 1 year ago)
- Last Synced: 2024-03-18T14:47:06.322Z (10 months ago)
- Topics: hugo, hugo-theme, theme
- Language: SCSS
- Homepage: https://theme-fd.vercel.app
- Size: 633 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README-zh.md
- License: LICENSE
Awesome Lists containing this project
README
## 特性
- [x] 动态配置导航
- [x] 动态配置首页
- [x] 支持disqus
- [x] 支持valine
- [x] 支持分类## 最低要求
- hugo 版本 `v0.83.1`## 如何使用
```bash
git submodule add https://github.com/xnzone/theme-fd themes/theme-fd git add submodule https
```具体配置可以查看`config-example.toml`文件
## 修改导航图标
```bash
mkdir -p assets/sass && cd
touch _override.scss
```
在`_override.scss`中添加```scss
$avatar: 'https://gitcode.net/xnzone/solar/-/raw/master/avatar.jpg';
$domain: "localhost:1313";
```## 创建导航
```bash
hugo new about/index.md
hugo new archive/index.md
hugo new links/index.md
hugo new guestbook/index.md
```## 创建博客
```bash
hugo new post/2021-11-24-hello-world.md
```## vercel部署example
现在不允许`vercel.json`配置环境变量,所以需要在环境变量页面添加`HUGO_VERSION`版本,具体操作可以参考[vercel](https://vercel.com/docs/concepts/deployments/build-step#framework-versioning)
```bash
hugo version && mkdir -p themes/theme-fd && cp -R ../layouts ../assets ../archetypes themes/theme-fd/ && hugo -D --gc
```