1
0
Fork 0
forked from github/pelican

Fix a FAQ mistake.

This commit is contained in:
Alexis Metaireau 2010-11-15 18:58:54 +00:00
commit 32102dae12
4 changed files with 8 additions and 5 deletions

View file

@ -161,10 +161,10 @@ FAQ
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::
SITENAME = "http://mywebsite.tld"
SITEURL = "http://mywebsite.tld"

1
THANKS
View file

@ -6,3 +6,4 @@ bugs or giving ideas. Thanks to them !
- Guillaume B (Gui13)
- Ronny Pfannschmidt
- Jérome Renard
- Nicolas Martin

View file

@ -12,6 +12,7 @@ class Page(object):
def __init__(self, content, metadatas={}, settings={}, filename=None):
self.content = content
self.status = "published" # default value
for key, value in metadatas.items():
setattr(self, key, value)

View file

@ -11,7 +11,8 @@ from pelican.utils import get_date, open
_METADATAS_FIELDS = {'tags': lambda x: x.split(', '),
'date': lambda x: get_date(x),
'category': lambda x: x,
'author': lambda x: x}
'author': lambda x: x,
'status': lambda x:x.strip(),}
class RstReader(object):