Franklin.jl - how to link to a local PDF file?

How can I add a PDF file as a downloadable link, in a webpage generated by Franklin.jl? I can store the PDF file in e.g. _assets/.

Store the pdf in that folder and than just link to it from one of your pages or menus. Franklin uses Markdown syntax but also supports raw HTML code as well.

An aside, I stopped storing pdfs and related content inside my Franklin repo. If you want to change the pdf, you have to deploy a change to your website. Instead, I store them separately (separate github repo or AWS, for example) and point the links to those spots. Then the content can update independently from the website.

1 Like