1
0
Fork 0
forked from github/pelican
Commit graph

70 commits

Author SHA1 Message Date
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
Laureline Guerin
d272896adf Pagination - refactoring 2011-02-15 14:36:55 +01:00
Laureline Guerin
b042974673 Paginiation - add dates pagination to tag/category pages 2011-02-15 13:46:31 +01:00
Laureline Guerin
be7274064b Cat and tag page generation - update dates list with articles of current tag/category 2011-02-15 13:44:36 +01:00
Laureline Guerin
60756678ab Pagination - simplification 2011-02-15 13:41:55 +01:00
Laureline Guerin
dc6771d604 Pagination - fix context 2011-02-14 16:46:18 +01:00
Laureline Guerin
4111acd1c1 Pagination added for index and tag/category pages 2011-02-14 16:24:54 +01:00
Alexis Metaireau
06246d1aa4 Fix #65. Unicode, grr. Thanks Bruno Bord. 2011-02-01 22:50:18 +00:00
Alexis Metaireau
d0ec18f4db Add the ability to sort categories.
generator.categories is now a list of (category, articles) instead of a dict. This
is to avoid using ordered dicts that have been introduces in python 2.7, so we stay
as much as possible compatible with older versions.

This fixes #62. Thanks to Bruno for the report.
2011-02-01 01:57:39 +00:00
Alexis Metaireau
2f915caff2 branch merge
Conflicts:
	pelican/generators.py
	pelican/settings.py
2011-01-05 18:25:14 +01:00
Alexis Metaireau
2f6300af46 Do not create a general function for "update_object_content". 2011-01-05 14:27:46 +01:00
Arnaud BOS
3ee595f927 Images support and add built files to gitignore 2011-01-05 13:32:54 +01:00
Alexander Artemenko
fd47a74b9e Template loading on demand get_templates was transformed into get_template. 2011-01-02 02:50:08 +03:00
Alexander Artemenko
b3256f0ecd Added tag cloud generation. Result stored in the context.tag_cloud as list of tuples (tag, weight). Weight is from 1 to TAG_CLOUD_STEPS, lesser weight corresponds to bigger font size. 2011-01-01 23:08:29 +03:00
Allan Whatmough
3c0649d89f Use JINJA_EXTENSIONS setting if available when creating the Environment object. 2010-12-27 23:27:40 +00:00
Alexander Artemenko
01b4c06916 Custom bicycle 'update_dict' was replaced with 'collections.defaultdict'. 2010-12-26 23:59:30 +03:00
Alexis Metaireau
7873370583 Merge branch 'master' of https://github.com/svetlyak40wt/pelican 2010-12-22 19:07:30 +00:00
Guillaume B
31cee95b6f Fixed the PDF generation
Signed-off-by: Guillaume B <guitreize@gmail.com>
2010-12-22 10:45:55 +08:00
Alexander Artemenko
c64ccc4fcd Added setting option RELATIVE_URLS to change default behaviour of file writer. 2010-12-22 03:19:35 +03:00
Alexander Artemenko
52459768f2 Fixed feed generator for translations. 2010-12-22 02:35:29 +03:00
Alexis Metaireau
8f59649eb6 Merge branch 'master' of https://github.com/svetlyak40wt/pelican
Conflicts:
	pelican/generators.py
2010-12-20 22:42:29 +00:00
Alexander Artemenko
1d74de2559 Added another option CLEAN_URLS, to use generated files with mod_rewrite and to show nice urls to the end user. 2010-12-21 00:21:29 +03:00
Alexander Artemenko
3afdb8fcff Articles translations are enabled. To use this feature, you need to
add a Lang meta into the each article and set DEFAULT_LANG setting
which is 'en' by default.

Than, only articles in the default language (or without variant in
default language) will be shown in the index of the blog. And each
Article will have translations list.

The same is applicable to the static Pages.

Also, separate feeds are generated for each language except default.
2010-12-20 22:02:27 +03:00
Freeculture
9e2e73d39c Fixed a mistake for tag feed generator 2010-12-18 20:42:15 +01:00
Freeculture
d61b108a0e Creation of tag feeds (atom & rss) 2010-12-17 09:25:19 +01:00
Alexis Metaireau
3e9b80e993 Fix #21: Add a setting for the archive order (REVERSE_ARCHIVE_ORDER) 2010-12-14 15:55:26 +00:00
Alexis Metaireau
5748a91ad7 Add PAGES to the context 2010-12-14 15:48:35 +00:00