alfredbaudisch / pardall_markdown

Reactive publishing framework, filesystem-based with support for Markdown, nested hierarchies, and instant content rebuilding. Written in Elixir.
Apache License 2.0
115 stars 7 forks source link

Idea - separate Plug.Static for image folder #33

Open dkuku opened 3 years ago

dkuku commented 3 years ago

Cool project. What I'm currently doing in my project is to keep the static images folder inside the markdown folder and adding another Plug.Static in endpoint.exs for the images - this way I'ts compatible with external markdown editors and with phoenix because the file path is the same.

alfredbaudisch commented 3 years ago

Thanks!

There's already support for static images and a Plug.Static, you can see it in the demo project, here and at 6:59 and onwards in the video tutorial.

The demo project also contains a bunch of images in the sample posts and sample folder.

Is this what you mean?

alfredbaudisch commented 3 years ago

It's also possible to point out which is the statics folder in the configuration.

# Name of the folder inside `root_path:`, that contains static assets,
# those files won't be parsed.
dkuku commented 3 years ago

ok thanks. I just watched the beginning of the video and you had the images folder in separate disectery than the markdown files

alfredbaudisch commented 3 years ago

I'm going to create an example for this use case, so keeping it open.