Thx, you are right. Thought I'd tried that, but obviously not. Appreciate the quick response. --Don
On Friday, December 18, 2020 at 4:06:05 AM UTC-5 kwpo...@gmail.com wrote: > Just use href="/downloads/whatever.pdf" and Nikola will do the right thing. > > -- > Chris Warrick <https://chriswarrick.com/> > > On Fri, 18 Dec 2020, 10:01 Don Oxley, <dono...@gmail.com> wrote: > >> I'm trying to understand how to construct the href's needed to allow >> readers to download pdf files. >> >> I have a downloads directory (parallel to pages) which I copy into the >> output directory for serving. >> The initial reference as it exists in my Wordpress import is: >> *<a href="%5Burl%5D/wp-content/downloads/TandT%20Archive/201806.pdf" >> target="_blank">June2018</a>* >> >> Before running Nikola build, I transform it to (which works if I manually >> feed it to serve) in the pages directory: >> *<a href="/../../../../../../downloads/TandT%20Archive/201806.pdf" >> target="_blank">June2018</a>* >> >> After running Nikola build, in the output directory, I find: >> (index.md) >> *<a href="/../../../../../../downloads/TandT%20Archive/201806.pdf" >> target="_blank">June2018</a>* >> (index.html) >> *<a href="downloads/TandT%20Archive/201806.pdf" >> target="_blank">June2018</a>* >> >> This in turn serves as: >> *http://localhost:8000/pages/cool-stories-index/tips-and-tales/tips-and-tales-archive/downloads/TandT%20Archive/201806.pdf >> >> <http://localhost:8000/pages/cool-stories-index/tips-and-tales/tips-and-tales-archive/downloads/TandT%20Archive/201806.pdf>* >> instead of: >> *http://localhost:8000/downloads/TandT%20Archive/201806.pdf >> <http://localhost:8000/downloads/TandT%20Archive/201806.pdf>* >> >> I've searched the docs and even attempted to follow the nikola code >> itself, but I"m still not sure how to properly handle this. >> >> Guidance please. >> >> Thx, >> --Don >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "nikola-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to nikola-discus...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/nikola-discuss/3f0a3127-7ebf-4911-9fc0-9c528cb9a88bn%40googlegroups.com >> >> <https://groups.google.com/d/msgid/nikola-discuss/3f0a3127-7ebf-4911-9fc0-9c528cb9a88bn%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "nikola-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to nikola-discuss+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/nikola-discuss/3aea871d-6482-4504-902a-e2f6f400b71en%40googlegroups.com.