mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fix a FAQ mistake.
This commit is contained in:
parent
5407be19cf
commit
32102dae12
4 changed files with 8 additions and 5 deletions
|
|
@ -161,10 +161,10 @@ FAQ
|
||||||
|
|
||||||
Here are some frequently asqued questions.
|
Here are some frequently asqued questions.
|
||||||
|
|
||||||
How do I specify my site URL? I dont want to use the default "/home/…" folder.
|
How can I specify the url of my website ?
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
Configure the `SITENAME` to your site base url, let's say
|
Configure the `SITEURL` to your site base url, let's say
|
||||||
`http://myswebsite.tld`, in your settings file::
|
`http://myswebsite.tld`, in your settings file::
|
||||||
|
|
||||||
SITENAME = "http://mywebsite.tld"
|
SITEURL = "http://mywebsite.tld"
|
||||||
|
|
|
||||||
1
THANKS
1
THANKS
|
|
@ -6,3 +6,4 @@ bugs or giving ideas. Thanks to them !
|
||||||
- Guillaume B (Gui13)
|
- Guillaume B (Gui13)
|
||||||
- Ronny Pfannschmidt
|
- Ronny Pfannschmidt
|
||||||
- Jérome Renard
|
- Jérome Renard
|
||||||
|
- Nicolas Martin
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ class Page(object):
|
||||||
|
|
||||||
def __init__(self, content, metadatas={}, settings={}, filename=None):
|
def __init__(self, content, metadatas={}, settings={}, filename=None):
|
||||||
self.content = content
|
self.content = content
|
||||||
|
self.status = "published" # default value
|
||||||
for key, value in metadatas.items():
|
for key, value in metadatas.items():
|
||||||
setattr(self, key, value)
|
setattr(self, key, value)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,8 @@ from pelican.utils import get_date, open
|
||||||
_METADATAS_FIELDS = {'tags': lambda x: x.split(', '),
|
_METADATAS_FIELDS = {'tags': lambda x: x.split(', '),
|
||||||
'date': lambda x: get_date(x),
|
'date': lambda x: get_date(x),
|
||||||
'category': lambda x: x,
|
'category': lambda x: x,
|
||||||
'author': lambda x: x}
|
'author': lambda x: x,
|
||||||
|
'status': lambda x:x.strip(),}
|
||||||
|
|
||||||
|
|
||||||
class RstReader(object):
|
class RstReader(object):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue