Skip to content

Commit

Permalink
Feat: 升级主题 0.3.0,增加输出 readme.md 到 public 文件夹
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Jan 1, 2024
1 parent 7426a2b commit ef88023
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 28 deletions.
37 changes: 19 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,25 @@

## Content

TODO
- [归档](https://lruihao.cn/archives/)
- [分类](https://lruihao.cn/categories/)
- [合集](https://lruihao.cn/collections/)
- [标签](https://lruihao.cn/tags/)

## Directory structure
## Distributable

- [github-pages](https://github.com/Lruihao/lruihao.github.io)
- [Vercel](https://blog-lruihao.vercel.app/)

## Subscribe

- [RSS](http://lruihao.cn/index.xml)
- [GitHub](https://github.com/Lruihao/hugo-blog "Watch on GitHub")
- [云 + 社区](https://cloud.tencent.com/developer/column/94521)

## [Roadmap](https://github.com/users/Lruihao/projects/1)

## Project setup

```bash
▸ .github/ # GitHub configuration
Expand All @@ -31,20 +47,13 @@ TODO
▸ themes/ # theme submodules
```

## Distributable

- [github-pages](https://github.com/Lruihao/lruihao.github.io)
- [Vercel](https://blog-lruihao.vercel.app/)

## Quick Start

首先点上 Star 😜,然后根据操作系统(Windows、Linux、macOS)安装最新扩展版本的 [Hugo(>= 0.112.0)](https://gohugo.io/installation/)

```bash
git clone --recursive git@github.com:Lruihao/hugo-blog.git
```

有两种方法可以启动这个博客。
下载源码后,有两种方法可以启动这个博客。

### NPM

Expand Down Expand Up @@ -115,14 +124,6 @@ Press Ctrl+C to stop

</details>

## [Roadmap](https://github.com/users/Lruihao/projects/1)

## Subscribe

- [RSS](http://lruihao.cn/index.xml)
- [GitHub](https://github.com/Lruihao/hugo-blog "Watch on GitHub")
- [云 + 社区](https://cloud.tencent.com/developer/column/94521)

## Powered

- [Hugo](https://github.com/gohugoio/hugo)
Expand Down
23 changes: 16 additions & 7 deletions config/_default/outputFormats.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@
isPlainText = true
isHTML = false

# Options to make output baidu_urls.txt file
[BaiduUrls]
baseName = "baidu_urls"
mediaType = "text/plain"
isPlainText = true
isHTML = false

# FixIt 0.3.0 | NEW Options to make output /archives/index.html file
[archives]
path = "archives"
Expand All @@ -33,3 +26,19 @@
isPlainText = false
isHTML = true
permalinkable = true

# FixIt 0.3.0 | NEW Options to make output readme.md file
# FixIt 0.3.0 | 新增 用于输出 readme.md 文件的设置
[README]
baseName = "readme"
mediaType = "text/markdown"
isPlainText = true
isHTML = false

# FixIt 0.3.0 | CHANGED Options to make output baidu_urls.txt file
# FixIt 0.3.0 | 更改 用于输出 baidu_urls.txt 文件的设置
[baidu_urls]
baseName = "baidu_urls"
mediaType = "text/plain"
isPlainText = true
isHTML = false
9 changes: 7 additions & 2 deletions config/_default/outputs.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
# See: https://gohugo.io/templates/output-formats/#customizing-output-formats
# -------------------------------------------------------------------------------------

# Options to make hugo output files
home = ["HTML", "RSS", "JSON", "BaiduUrls", "archives", "offline"]
# Options to make hugo output files, the optional values are below:
# home: ["HTML", "RSS", "JSON", "archives", "offline", "README", "baidu_urls"]
# page: ["HTML", "MarkDown"]
# section: ["HTML", "RSS"]
# taxonomy: ["HTML", "RSS"]
# term: ["HTML", "RSS"]
home = ["HTML", "RSS", "JSON", "archives", "offline", "README", "baidu_urls"]
page = ["HTML", "MarkDown"]
section = ["HTML", "RSS"]
taxonomy = ["HTML"]
Expand Down
8 changes: 8 additions & 0 deletions config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ enablePWA = true
externalIcon = true
# FixIt 0.3.0 | NEW whether to reverse the order of the navigation menu
navigationReverse = true
# FixIt 0.3.0 | NEW whether to add site title to the title of every page
# remember to set up your site title in `hugo.toml` (e.g. title = "title")
withSiteTitle = true
# FixIt 0.3.0 | NEW title delimiter when the site title is be added to the title of every page
titleDelimiter = "|"
# FixIt 0.3.0 | NEW whether to add site subtitle to the title of index page
# remember to set up your site subtitle by `params.header.subtitle.name`
indexWithSubtitle = true
# FixIt 0.2.14 | NEW FixIt will, by default, inject a theme meta tag in the HTML head on the home page only.
# You can turn it off, but we would really appreciate if you don’t, as this is a good way to watch FixIt's popularity on the rise.
disableThemeInject = false
Expand Down

0 comments on commit ef88023

Please sign in to comment.