1
0
Fork 0
forked from github/pelican
Commit graph

96 commits

Author SHA1 Message Date
Meir Kriheli
50f2cd295f Implement LessCSSGenerator 2012-04-15 02:20:20 +03:00
draftcode
4efca13c33 Fix a bug that ArticlesGenerator doesn't see DEFAULT_CATEGORY.
When you set ARTICLE_DIR which is not equal to PATH, ArticlesGenerator
doesn't use DEFAULT_CATEGORY but use ARTICLE_DIR's dirname.
2012-03-24 11:53:07 +09:00
Andrea Crotti
0922efa371 change the way logging is done, using the standard log tree instead of
calling the module-level functions on an unitialised logging object.

This allows to
- simplify log.py
- use one logger object for each file
2012-03-20 13:01:21 +00:00
Simon
4f95b9f05c remove useless .keys() for key in dict expressions 2012-03-14 09:38:36 +01:00
Alexis Metaireau
78091bfa80 Merge pull request #238 from draftcode/feed_issue
Do not create feeds when their filenames are set to None.
2012-03-11 01:46:58 -08:00
Bruno Binet
0ca9997e10 paths for finding articles and pages are now parametrable 2012-03-11 01:22:16 +01:00
draftcode
1194764ed1 Do not create feeds when their filenames are set to None. 2012-03-11 01:30:45 +09:00
Alexis Metaireau
a7ea166fd2 fix #233 2012-03-10 12:21:54 +01:00
saghul
5e26062fd0 Fix for issue #233 2012-03-10 11:32:22 +01:00
Alexis Metaireau
6cde7fd27a PEP8-ify.
Wrap to 80 chars, sanitize imports.
2012-03-09 16:21:38 +01:00
Alexis Metaireau
df25dec30a Use the with statement when opening files. 2012-03-09 16:17:09 +01:00
Bruno Binet
8bf0a22eb0 fix encoding errors
error was:codeEncodeError: 'ascii' codec can't encode character u'\xe9' [..]
2012-03-06 16:41:36 +00:00
Kyle Fuller
c5816c9c5a Make these patches compatible with upstream master 2012-03-06 16:41:36 +00:00
Kyle Fuller
44cf2ad400 Support configurable URL's & SAVE_AS path for Author, Category and Tag 2012-03-06 16:41:35 +00:00
Kyle Fuller
a39787c1a2 Add settings to change the URL's and SAVE_AS paths
Example usage:

* ARTICLE_URL = 'posts/{date:%Y}/{date:%b}/{date:%d}/{slug}/'
* ARTICLE_SAVE_AS = 'posts/{date:%Y}/{date:%b}/{date:%d}/{slug}/index.html'

This removes CLEAN_URLS and ARTICLE_PERMALINK_STRUCTURE because these
new settings can produce the same result.
2012-03-06 16:41:35 +00:00
Kyle Fuller
ff9c786149 Create a Author class which has a url property 2012-03-06 16:39:07 +00:00
Kyle Fuller
f9ed01bb64 Create a Tag class which has a url property 2012-03-06 16:39:07 +00:00
Kyle Fuller
6754099730 Create a Category class which has a url property 2012-03-06 16:39:07 +00:00
Stéphane Raimbault
9cced6be83 Sort imports and remove trailing whitespaces 2012-02-28 17:40:13 +01:00
Stéphane Raimbault
c699172fd6 Removed useless imports 2012-02-28 17:37:17 +01:00
Stéphane Raimbault
90dab85e13 Removed execution mode of generators.py 2012-02-28 17:37:17 +01:00
Kyle Fuller
6ca3fd423b Fix a bug in the exception handler for a page reader 2011-12-24 00:57:12 +00:00
Jökull Sólberg Auðunsson
499a67912f Never fail on generating posts, just skip and log exception. 2011-11-23 20:35:45 +00:00
Nicolas Perriault
fc3ca7ea0e fixed aliased replacements were broken when using ARTICLE_PERMALINK_STRUCTURE 2011-08-22 19:42:42 +02:00
Michael Yanovich
5b4e148a2e Updated pelican/generators.py to check if the folder exists before
trying to create it. It will always generate an OSError if the
folder already exists even if it has the appropriate permissions.
2011-08-20 09:51:18 -04:00
Skami18
26eecf082a Removed another utf-8 related bug 2011-08-16 18:43:51 +02:00
Borgar
a5f47cfae9 Allow overriding reader extensions.
This adds an extensions setting all readers in the style of [ext]_EXTENSIONS. So for the MarkdownReader, who's extension is "md", the setting read is MD_EXTENSIONS.

The settings allow overriding the default options passed through the readers. In the case of Markdown the default values are ['codehilite','extra'], but user may change this through the setting:

MD_EXTENSIONS = ['footnotes','abbr','codehilite']
2011-08-07 23:05:58 +00:00
mviera
319b553f69 I developed the ARTICLE_PERMALINK_STRUCTURE option into the wrong method, because urls in feed are not being modified. Now, it's fixed. Issue #145. 2011-08-03 22:00:41 +02:00
mviera
a13ae91f0b Adding more documentation about ARTICLE_PERMALINK_STRUCTURE in settings. Also, i deleted the try except because strftime never raises an exception. Issue #145
I set the ARTICLE_PERMALINK_STRUCTURE option as null in settings.py and remove it from pelican sample config file.
2011-07-29 22:09:09 +02:00
mviera
2609004719 I change PERMALINK_STRUCTURE to ARTICLE_PERMALINK_STRUCTURE and updating the settings.rst documentation.
Also I have implemented other options to this setting, such as the category, the date, the author, this kind of things.

Finally, I have setted the ARTICLE_PERMALINK_STRUCTURE option as null in pelican.conf.py sample file.
2011-07-29 01:11:35 +02:00
mviera
068a3d2f1d Year and month in URL. Issue #145 2011-07-27 23:47:50 +02:00
Skami18
17e7fb4509 Some changes in the templates loading system — documentation will be updated soon
-    The `simple` theme can now be extended with the syntax `{% extends "!simple/index.html" %}`
     instead of `{% extends "simple/index.html" %}` to avoid conflicts with a `simple/` folder.

-    If a template is missing in a theme, it will be replaced by the
     corresponding template of the `simple` theme, so it's possible to
     make a new theme with only two file: a `base.html` file that
     extends the `base.html` file of the `simple` theme, and a CSS
     stylesheet, for example.
2011-07-22 18:45:41 +02:00
Skami18
81722f65b8 Template from the simple themes can now be extended from the other themes
Templates from the `simple` themes can be used in the other themes using
the `extends` keyword:

    {% extends "simple/index.html" %}

This does not affect the behavior of Pelican:, so there is no need to modify
the existing themes.
2011-07-19 12:31:18 +02:00
Massimo Santini
d8da5ce590 Genetare authors pages with all their posts 2011-06-30 23:49:09 +02:00
Alexis Metaireau
7fc5fa0661 Order tag articles per date. Fix #133 2011-06-12 22:18:50 +02:00
Alexis Metaireau
6b44d93780 Add the possibility to publish drafts. Fixes #111 2011-05-08 14:58:57 +01:00
Alexis Metaireau
3641703a49 Merge branch 'master' of github.com:ametaireau/pelican 2011-05-07 22:53:06 +01:00
Alexis Metaireau
04da794b6b Add a feature to copy files from src to dest.
Fixes #86
2011-05-07 22:47:30 +01:00
Alexis Metaireau
52f2a8383a Metadata, not metadatas. 2011-05-07 20:00:30 +01:00
Mikhail Korobov
70ea12aec3 os.walk does not support followlinks kwargs in python 2.5 2011-05-06 17:01:34 +06:00
Alessandro Martin
c421956cd9 Modified Generator Base Class in order to pass custom Jinja filters in
settings.py
2011-04-20 20:29:29 +08:00
Nicolas Duhamel
93e62c6336 fix issue #91 2011-04-20 19:54:14 +08:00
Skami18
3166e6dfe3 Calls to «print» replaced by the «pelican.log» module. 2011-04-19 14:49:46 +02:00
Skami18
752e9d1c75 Tabs replaced by spaces 2011-03-27 12:49:28 +02:00
Skami18
421dc21f72 Removed a category-related bug 2011-03-27 12:46:33 +02:00
Alexis Metaireau
dfb214d47d default tags to [] 2011-03-23 16:41:24 +00:00
Alexander Artemenko
138e19fa19 Merge branch 'master' of git://github.com/ametaireau/pelican
Conflicts:
	docs/settings.rst
	pelican/generators.py
	pelican/settings.py
2011-03-23 10:25:38 +03:00
Alexis Metaireau
e9515130e0 Merge branch 'pagination-zebuline' 2011-02-17 19:04:30 +00:00
skami
4fddcf6c92 Removed the issue #75
See:
https://github.com/ametaireau/pelican/issues#issue/75
2011-02-15 18:48:23 +01:00
Alexis Metaireau
e0e4155e89 PEP 8 fixes 2011-02-15 13:48:57 +00:00