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

@ -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