Closed emanuelegdepaoli closed 1 year ago
I think you need to place the CSS and JS files in the assets
directory and make sure when you reference them you're pointing to them absolutely. From looking at the errors you posted you've either added /page/
into the path, which isn't needed, or they are being set relatively which isn't right either. They need to be absolute so the files can be found from any page on the site. Hope this makes sense!
Thank you for your help, the problem was that the CSS file, the JS file and the folder image have to be all in assets
and I have to point to them absolutely.
I'am trying to add lighbox2 to my website created using alembic as theme. I followed the instructions in this page:
1- added the folders
css
andjs
with the required files. 2- added the folder_layout
which includes a customdefault.html
, with the required modifications.However, when running the site locally, I get the following errors:
where
page
is the website section where I try to load the images. That is, I have apage.md
file in my main folder and my header in_config.yml
is like the following:This is my first attempt to build a website and I really don't know how to solve the path problem.