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

## 本章页面
- [ByType](https://hugozh.cn/functions/resources/bytype/)：返回给定媒体类型的全局资源集合；一个都没有时返回 nil。（Markdown：https://hugozh.cn/functions/resources/bytype/index.md）
- [Concat](https://hugozh.cn/functions/resources/concat/)：返回拼接后的资源切片。（Markdown：https://hugozh.cn/functions/resources/concat/index.md）
- [Copy](https://hugozh.cn/functions/resources/copy/)：返回给定资源在目标路径上的副本。（Markdown：https://hugozh.cn/functions/resources/copy/index.md）
- [ExecuteAsTemplate](https://hugozh.cn/functions/resources/executeastemplate/)：返回由 Go 模板创建的资源，它用给定上下文解析并执行。（Markdown：https://hugozh.cn/functions/resources/executeastemplate/index.md）
- [Fingerprint](https://hugozh.cn/functions/resources/fingerprint/)：返回带指纹的资源，它由给定资源的内容做密码学哈希得到。（Markdown：https://hugozh.cn/functions/resources/fingerprint/index.md）
- [FromString](https://hugozh.cn/functions/resources/fromstring/)：返回由字符串创建的资源。（Markdown：https://hugozh.cn/functions/resources/fromstring/index.md）
- [Get](https://hugozh.cn/functions/resources/get/)：返回给定路径上的全局资源；找不到时返回 nil。（Markdown：https://hugozh.cn/functions/resources/get/index.md）
- [GetMatch](https://hugozh.cn/functions/resources/getmatch/)：返回路径匹配给定 glob 模式的第一个全局资源；找不到时返回 nil。（Markdown：https://hugozh.cn/functions/resources/getmatch/index.md）
- [GetRemote](https://hugozh.cn/functions/resources/getremote/)：返回给定 URL 上的远程资源；找不到时返回 nil。（Markdown：https://hugozh.cn/functions/resources/getremote/index.md）
- [Match](https://hugozh.cn/functions/resources/match/)：返回路径匹配给定 glob 模式的全局资源集合；一个都没有时返回 nil。（Markdown：https://hugozh.cn/functions/resources/match/index.md）
- [Minify](https://hugozh.cn/functions/resources/minify/)：返回给定资源压缩后的版本。（Markdown：https://hugozh.cn/functions/resources/minify/index.md）
- [PostProcess](https://hugozh.cn/functions/resources/postprocess/)：返回在构建之后才处理的资源。（Markdown：https://hugozh.cn/functions/resources/postprocess/index.md）
- [Publish](https://hugozh.cn/functions/resources/publish/)：发布给定资源后返回该资源。（Markdown：https://hugozh.cn/functions/resources/publish/index.md）

---
