How to download a page converted to pdf or odt

I want to add a functionality to download pages converted to pdf or odt with pandoc.
My idea is to do this in runtime by script.

The first problem is to get pages markdown sources.
Is there a way to make the content folder static to store md sources?

I have following project structure:

├── archetypes
├── assets
├── bin
├── config
├── config.toml
├── content
├── data
├── functions
├── images
├── layouts
├── node_modules
├── resources
├── static
├── themes
└── theme.toml

I tried to add this string to config/_default/config.toml

staticDir = ["content"]

But a can’t reach md sources, so I think I’m doing something wrong.


source = "static"
target = "static"

source = "content"
target = "static"


1 Like

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