# Sheating a document with a frontmatter

**URL:** <https://discourse.gohugo.io/t/sheating-a-document-with-a-frontmatter/57474>\
**Category:** support\
**Created:** [August 14, 2026, 6:34am UTC](https://discourse.gohugo.io/t/sheating-a-document-with-a-frontmatter/57474 "2026-08-14T06:34:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Natural\_Nationalism](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/natural_nationalism/32/24928_2.png) [@Natural\_Nationalism](https://discourse.gohugo.io/u/Natural_Nationalism)\
**Post date:** [August 14, 2026, 6:34am UTC](https://discourse.gohugo.io/t/sheating-a-document-with-a-frontmatter/57474/1 "2026-08-14T06:34:28Z")

</div>

Hi, it is something I never needed before: I need to publish an archive with lots of files, including images and pdf and epub documents, and give them a summary, and other metadata like dates.  
Naively I thought of using a headless page with the url field pointing at the document laying in static:

```auto
---
build:
  render: never
Title: Drying Shed
Summary: "Guy-Claude personally designed a drying shed to prevent raw foods from spoiling due to excessive sun exposure."
url: "archives/dernier-plan-sechoir.pdf"
---

```

… But it seems like headless pages don’t get any .Rel/AbsURL at all, as the link in my meny simply got an empty href attribute. So my idea was wrong. What is the simplest, canonical way to do that ? To make it so the page has its url pointing at the document transparently?

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [August 14, 2026, 2:34pm UTC](https://discourse.gohugo.io/t/sheating-a-document-with-a-frontmatter/57474/2 "2026-08-14T14:34:14Z")

</div>

See [Build options](https://gohugo.io/content-management/build-options/#render)

If you set `render: link` you should get what you want.

---

<div class="post-metadata">

**Author:** ![Natural\_Nationalism](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/natural_nationalism/32/24928_2.png) [@Natural\_Nationalism](https://discourse.gohugo.io/u/Natural_Nationalism)\
**Post date:** [August 14, 2026, 6:38pm UTC](https://discourse.gohugo.io/t/sheating-a-document-with-a-frontmatter/57474/3 "2026-08-14T18:38:15Z")

</div>

Perfect. I overlooked that value.

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [August 16, 2026, 6:38pm UTC](https://discourse.gohugo.io/t/sheating-a-document-with-a-frontmatter/57474/4 "2026-08-16T18:38:38Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
