My Kirby is a bit rusty. I have a markdown file in a folder.
content
|
data
|
folder1
|
page.md
I am linking to page.md from my homepage. At the moment the plain text .md file simply displays. Ideally I want to offer a download link from the homepage as well as a nicely rendering representation for previewing/viewing.
Would I need to create a template called page.php and then read the file and pass it to kirbytext()?
This is just a .md file, not in kirby content file format with different fields? Usually, you would call field methods on the individual fields inside your .md/.txt file, for markdown formatted fields this would be ->kirbytext()
Maybe read the relevant sections of our guide to get to terms with the basics again.
This is indeed a plain Markdown file without Kirby relevant fields. They are automatically generated from website content in another system. I am simply building a viewing website if you will. So the markdown should be displayed as is without any Kirby fields if possible.