1
0
Fork 0
forked from github/pelican

Encourage use of https:// in SITEURL

Refs #2183 #2186
This commit is contained in:
Justin Mayer 2017-07-25 09:00:41 -07:00
commit 68724e9682
3 changed files with 7 additions and 4 deletions

View file

@ -203,10 +203,12 @@ Basic settings
.. data:: SITEURL
Base URL of your website. Not defined by default, so it is best to specify
Base URL of your web site. Not defined by default, so it is best to specify
your SITEURL; if you do not, feeds will not be generated with
properly-formed URLs. You should include ``http://`` and your domain, with
no trailing slash at the end. Example: ``SITEURL = 'http://mydomain.com'``
properly-formed URLs. If your site is available via HTTPS, this setting
should begin with ``https://`` — otherwise use ``http://``. Then append your
domain, with no trailing slash at the end.
Example: ``SITEURL = 'https://example.com'``
.. data:: STATIC_PATHS = ['images']

View file

@ -246,7 +246,7 @@ needed by Pelican.
CONF['lang'] = ask('What will be the default language of this web site?',
str_compat, args.lang or CONF['lang'], 2)
if ask('Do you want to specify a URL prefix? e.g., http://example.com ',
if ask('Do you want to specify a URL prefix? e.g., https://example.com ',
answer=bool, default=True):
CONF['siteurl'] = ask('What is your URL prefix? (see '
'above example; no trailing slash)',

View file

@ -10,6 +10,7 @@ import sys
sys.path.append(os.curdir)
from pelicanconf import *
# If your site is available via HTTPS, make sure SITEURL begins with https://
SITEURL = '$siteurl'
RELATIVE_URLS = False