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*
instead of:
*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-discuss+unsubscr...@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.

Reply via email to