Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Can't pass variables in pelicanconf.py #108

Open
aegis4048 opened this issue Jan 27, 2019 · 0 comments
Open

Can't pass variables in pelicanconf.py #108

aegis4048 opened this issue Jan 27, 2019 · 0 comments

Comments

@aegis4048
Copy link

Inside Jupyter notebook, I want to embed image files. The tree for image files are like this:

my_blog > content > images > mobile_1.jpg
my_blog > content > images > mobile_2.jpg

I want to refer to my static image files using {{ SITEURL }} argument. But when I use {{ SITEURL }}, or any other pelicanconf.py variables inside Jupyter like this,

<div class="row">
    <div class="col-4"><img src="{{ SITEURL }}/images/mobile_1.jpg"></div>
    <div class="col-4"><img src="{{ SITEURL }}/images/mobile_2.jpg"></div>
</div>

and run pelican content, get the following warning message

WARNING: Replacement Indicator '{ SITEURL ' not recognized, skipping replacement

And the SITEURL was indeed not passed into the HTML file rendered using Jupyter. Is there anyway that I can pass variables pelicanconf.py into Jupyter?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant