RFE: allow for detached frontmatter

Is it possible to have the frontmatter defined in a file and then a variable in the frontmatter define where the actual content file is?

My front matter would define something like:

---
  title: "my post title"
  file: /path/tofile.md
  tags: [ '1', '2' ]
---

and would otherwise be empty.

I think so. See https://gohugo.io/functions/readfile/#readout

Haven’t tried this myself but I guess that it’s doable.

I think what you’re asking for is covered here:

https://github.com/gohugoio/hugo/issues/3651