1

1. Briefly

Is it possible to create relative link to file in my site, which is not in content folder?


2. Detail

Condensed structure of my folder tree:

  • content — folder with my Markdown pages;
  • output — folder with my converted Markdown → HTML pages;
  • themes — folder with files of my theme sashapelican.
D:\Kristinita.bitbucket.io
├───content
│   └───pages
│       └───Sublime Text
│           Example.md
├───output
│   ├───Sublime Text
|       Example.html
├───themes
│   └───sashapelican
│       ├───statica
│       │   ├───images
│       │   │   ├───other_images
│       │   │       clippy.svg
│       └───templates
└───__pycache__

Full source of my test site — https://bitbucket.org/Kristinita/kristinita.bitbucket.org/src.

I want to create relative link in my Example.md file to clippy.svg file. Is it possible?


3. Did not help

  1. {{SITEURL}}/themes/sashapelican/statica/images/other_images/clippy.svg not worked for me.
  2. I read documentation, but I can find solution only if file clippy.svg is situated in content folder.
  3. Like in this answer [Clippy]({filename}/../themes/sashapelican/statica/images/other_images/clippy.svg) and [Clippy]({filename}/themes/sashapelican/statica/images/other_images/clippy.svg) also not worked for me.
  4. I don't find solution of my problem in description of autostatic plugin.

4. Do not offer

  1. Yes, I understand, that I can add my statica folder to STATIC_PATHS variable → STATIC_PATHS = ['statica'] in my pelicanconf.py file. But all files into statica folder will be copied to output folder. All files in my statica folder is static, I don't want exact duplicates in my site. I will use this method only if we don't have another solutions. Please, do not offer it.
Community
  • 1
  • 1
Саша Черных
  • 2,561
  • 4
  • 25
  • 71
  • Not sure I really understand what you want, but `{{SITEURL}}/themes/sashapelican/statica/images/other_images/clippy.svg` can't work as that folder doesn't exist in the generated output. However `{{SITEURL}}/theme/images/other_images/clippy.svg` should exist. – Miloslav Číž Feb 19 '17 at 23:36
  • @MiloslavČíž: I insert `{{SITEURL}}/theme/images/other_images/clippy.svg` into my Example.md file → I run command in terminal `pelican content` → I get ouput `WARNING: Replacement Indicator '{SITEURL' not recognized, skipping replacement`. Thanks. – Саша Черных Mar 15 '17 at 11:58

0 Answers0