# 模板函数
> 用这些函数查询模板系统。
- 本页规范地址：https://hugozh.cn/functions/templates/
- 最近更新：2026-10-02
- 站点：Hugo 中文文档（https://hugozh.cn/）· 社区维护的非官方中文翻译

## 本章页面
- [Current](https://hugozh.cn/functions/templates/current/)：返回当前正在执行的模板的相关信息。（Markdown：https://hugozh.cn/functions/templates/current/index.md）
- [Defer](https://hugozh.cn/functions/templates/defer/)：把模板的执行推迟到所有站点与输出格式都渲染完成之后。（Markdown：https://hugozh.cn/functions/templates/defer/index.md）
- [Exists](https://hugozh.cn/functions/templates/exists/)：报告相对于 `layouts` 目录的给定路径下是否存在模板文件。（Markdown：https://hugozh.cn/functions/templates/exists/index.md）
- [Inner](https://hugozh.cn/functions/templates/inner/)：执行由局部模板（partial）调用所包裹的内容块。（Markdown：https://hugozh.cn/functions/templates/inner/index.md）

---
