RFE: allow for detached frontmatter


#1

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.


#2

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

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


#3

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

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