Files
docs/versioned_docs/version-2.0/developer-guide/theme/template-variables/post.md
Ryan Wang 36a4db6796 docs: refine the field descriptions of the theme VO (#133)
完善主题开发文档关于 VO 字段的描述。

/kind documentation

Fixes https://github.com/halo-dev/docs/issues/122

```release-note
None
```
2022-12-08 04:54:10 +00:00

898 B

title, description
title description
文章 post.html - /archives/:slug

import CategoryVo from "../vo/CategoryVo.md" import TagVo from "../vo/TagVo.md" import ContentVo from "../vo/ContentVo.md" import Contributor from "../vo/Contributor.md" import PostVo from "../vo/PostVo.md"

路由信息

  • 模板路径:/templates/post.html
  • 访问路径:/archives/:slug

变量

post

变量类型

#PostVo

示例

<article>
  <h1 th:text="${post.spec.title}"></h1>
  <div th:utext="${post.content.content}"> </div>
</article>

_templateId

变量值

post

类型定义

CategoryVo

TagVo

Contributor

ContentVo

PostVo