getpelican / pelican

Static site generator that supports Markdown and reST syntax. Powered by Python.
https://getpelican.com
GNU Affero General Public License v3.0
12.58k stars 1.81k forks source link

Insecure content #2183

Closed casouri closed 7 years ago

casouri commented 7 years ago

I do not know if it is gcc's problem or pelican's. On my html page the link to style sheet is http link instead of https. This causes the browser complain about insecure content and not showing css. I generate html with make publish.

justinmayer commented 7 years ago

GCC? In any case, this is probably defined in your theme's base.html template file and is not related to Pelican itself.

casouri commented 7 years ago

In my base.html they are mentioned as

<link rel="stylesheet" href="{{ SITEURL }}/theme/css/screen.css" type="text/css" />
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/pygments.css" type="text/css" />

Now I am a total beginner, but seems to me, it is the problem of whoever generated the html. Do you have any ideas about which part of the process caused it?

casouri commented 7 years ago

I found it! It is the SITEURL in the publishconf.py. I set my page url with http

justinmayer commented 7 years ago

Glad you found the problem.