# Page
> 返回调用该短代码的 Page 对象。
- 官方英文原文：https://gohugo.io/methods/shortcode/page/
- 本页规范地址：https://hugozh.cn/methods/shortcode/page/
- 最近更新：2026-10-02
- 最后提交：912b1d3 chore(site): 添加 static/CNAME（hugozh.cn），供 GitHub Pages 等平台绑定自定义域名
- 签名：SHORTCODE.Page
- 返回类型：hugolib.pageForShortcode
- 站点：Hugo 中文文档（https://hugozh.cn/）· 社区维护的非官方中文翻译，如有出入以官方英文原文为准

---
内容如下：

```toml
title = 'Les Misérables'
author = 'Victor Hugo'
publication_year = 1862
isbn = '978-0451419439'
```

调用这个短代码：

```md
```

我们可以用 `Page` 方法访问前置元数据中的值：

```go-html-template {file="layouts/_shortcodes/book-details.html"}
<ul>
  <li>Title: {{ .Page.Title }}</li>
  <li>Author: {{ .Page.Params.author }}</li>
  <li>Published: {{ .Page.Params.publication_year }}</li>
  <li>ISBN: {{ .Page.Params.isbn }}</li>
</ul>
```

