feat: add detection of the theme version and Hugo version (#173)

* feat: add detection of the theme version and Hugo version

* fix: hugo.IsProduction is incompatible in Hugo v0.62.0
This commit is contained in:
Dillon
2020-03-16 21:35:16 +08:00
committed by GitHub
parent 9a7189c2a3
commit 41c2d3a38e
20 changed files with 53 additions and 26 deletions

View File

@@ -76,7 +76,7 @@ comment: true
```
* **title**: 文章标题.
* **subtitle**: 文章副标题. **LoveIt :(fas fa-greater-than-equal): :(far fa-file-archive): 0.2.0**
* **subtitle**: 文章副标题. **{{< version 0.2.0 >}}**
* **date**: 这篇文章创建的日期时间. 它通常是从文章的前置参数中的 `date` 字段获取的, 但是也可以在 [网站配置](../theme-documentation-basics/#site-configuration) 中设置.
* **lastmod**: 上次修改内容的日期时间.
* **draft**: 如果设为 `true`, 除非 `hugo` 命令使用了 `--buildDrafts`/`-D` 参数, 这篇文章不会被渲染.