mosra / m.css

A no-nonsense, no-JavaScript CSS framework, site and documentation theme for content-oriented websites
https://mcss.mosra.cz
Other
406 stars 92 forks source link

Cover image doesn't render on my Windows 10 #242

Closed jegrami closed 4 months ago

jegrami commented 4 months ago

The :cover: tag doesn't seem to work for me even though I followed the exact file structure the author used for the m.css project website. My index page is in content/. The cover image is in content/static/cover.jpg. On the index page, I reference the image like this: :cover: {static}/static/cover.jpg.

But it doesn't render. What I'm I missing? Please help!

mosra commented 4 months ago

I have to admit I don't remember how exactly this works in Pelican but in the pelicanconf.py I have these two additional options:

STATIC_URL = '{path}'
STATIC_PATHS = ['static']

So maybe those two are what makes it work? If it doesn't, what image address is generated in the output HTML?

jegrami commented 4 months ago

Yes, you're right. It works now. Thanks!