forked from github/pelican
parent
089b46b7eb
commit
68724e9682
3 changed files with 7 additions and 4 deletions
|
|
@ -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']
|
||||
|
||||
|
|
|
|||
|
|
@ -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)',
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue