Document
A document picker can be created by using the following strings as a frontmatter key (italics can be any string):
- document
- this_document
- download_document
Frontmatter fields with the above keys provide a file selector that filters all document files from the uploads directory. Accepted file types are: pdf, csv, docx, xlsx, pptx, doc, xls, ppt, odp, odf, ods, zip. Selecting a document will result in front matter like the below:
document: "/uploads/yourdocumentname.pdf"