1
0
Fork 0
forked from github/pelican
Commit graph

36 commits

Author SHA1 Message Date
Pavel Puchkin
898ac3808f Last fix? 2012-04-20 11:28:00 +11:00
Pavel Puchkin
6116236ed9 *_SAVE_AS = None fix
Ability to disable creating some files when their `_SAVE_AS` setting is
set to none-value. Mostly for disabling creating of `authors` stuff
(when there only one user, see #320 for details)
2012-04-18 18:56:53 +11:00
Justin Mayer
56b8a88b1f Improve uniqueness of feed entry ID
The ID of a feed entry should never change, but the previous method of
generating the ID -- i.e., using the entry URL -- results in an ID that
is not permanent and can change. Switching to the tag URI method from
RFC 4151 should help improve the long-term uniqueness and permanence of
entry IDs, as espoused here:
<http://web.archive.org/web/20110514113830/http://diveintomark.org/archives/2004/05/28/howto-atom-id>

Also added a trailing slash to the site URL inside the feed; the lack
thereof was causing a feed validation warning.
2012-03-31 10:08:16 -07:00
Justin Mayer
34310a61f5 Feed link inside feed should use FEED_DOMAIN
The initial work on enabling feeds to be served from a different domain
than the site domain focused on the feed link displayed inside the
base template. But there is also a feed link inside the generated feed
itself, which this commit updates to use the FEED_DOMAIN value (if
defined).

Also, it turns out that the FEED_MAIN_URL setting is not necessary; the
existing FEED and FEED_RSS functionality is simpler and can address the
targeted use case just as easily. That attribute has been removed from
the settings and template, along with corresponding changes to the docs.
Refs #177.
2012-03-31 08:10:40 -07: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
Alexis Metaireau
6cde7fd27a PEP8-ify.
Wrap to 80 chars, sanitize imports.
2012-03-09 16:21:38 +01:00
Stéphane Raimbault
9cced6be83 Sort imports and remove trailing whitespaces 2012-02-28 17:40:13 +01:00
Kyle Fuller
2be58aa51a Remove WITH_PAGINATION, only have a DEFAULT_PAGINATION setting
DEFAULT_PAGINATION can be set to False instead of using WITH_PAGINATION
2011-12-22 14:02:31 +00:00
Brian Hsu
b2919e9051 Add unique_id to RSS/ATOM feeds.
Reason:

    Without <guid> tag in RSS XML, some RSS reader will show all
    items in RSS as unread item.
2011-11-29 09:53:48 +08:00
Rémy HUBSCHER
32a6ecbcc5 Fix timezone bug for ATOM generation 2011-08-16 15:11:49 +02:00
Rémy HUBSCHER
acb65b77af GMT Time in ATOM feeds 2011-08-16 11:40:08 +02:00
Borgar
cd277672d0 Add a setting to limit feeds to a max number of items.
This adds FEED_MAX_ITEMS, which dictates the maximum number of items allowed in a feed.
2011-08-02 23:29:34 +00:00
Borgar
a7d5a9a420 Don't rewrite content URLs unless RELATIVE_URLS is True. 2011-06-29 13:42:04 +00:00
Borgar
f2ea886ed2 Rewrote URL reformatter.
This attempts to fix several issues:

1. The regexp that's supposed to catch href's doesn't work at all and even if it did match anything, it has too many parentheses for the following loop.

2. When a relative URL is replaced then it is done globally on the text and not per instance. So this `<a href="/foo/bar">/foo/bar</a>` will incorrectly get reformatted to `<a href="./static/foo/bar">./static/foo/bar</a>`.

3. Query parameter URLs are rewritten but shouldn't: `<a href="?foo=bar">` gets rewritten to `<a href="./static/?foo=bar">`

4. The joiner is producing too many slashes: `"." + "static" + "/files/image.png"` => `./static//files/image.png`.
2011-06-29 13:41:57 +00:00
Alexis Metaireau
1171d24f3f Remove logger infos 2011-05-08 14:53:10 +01:00
Alexis Metaireau
ec5196e5f0 Don't replace dicts with lists when iterating. 2011-05-08 14:33:05 +01:00
Mikhail Korobov
f3a8f45de4 One more python 2.5 fix 2011-05-06 16:56:02 +06:00
Mikhail Korobov
06246557c5 A couple of docstrings are fixed (they were refering obsolete params) 2011-05-06 16:44:12 +06:00
Nicolas Duhamel
4a5f4fe6e4 Fix internal linkref for allow TOC 2011-04-27 11:45:59 +02:00
Skami18
3166e6dfe3 Calls to «print» replaced by the «pelican.log» module. 2011-04-19 14:49:46 +02:00
Alexander Artemenko
f9f6da0a43 Don't add 'static' prefix to urls with schema.
Don't add 'static' prefix to urls like 'mailto:some@example.com' or
'skype:somename'.
2011-03-23 11:15:37 +03:00
Alexander Artemenko
ddcccfeaa9 Switch to 'C' locale during page rendering.
Don't know why, but without it Jinja fails with UnicodeDecode error.
2011-03-23 11:14:25 +03:00
Alexis Metaireau
d8e8bc868f fix pagination 2011-02-27 04:01:10 +00:00
Alexis Metaireau
e9515130e0 Merge branch 'pagination-zebuline' 2011-02-17 19:04:30 +00:00
Alexis Metaireau
b1f6cfb2c9 pagination - fix extension 2011-02-17 19:02:42 +00: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
Massimo Santini
aba1b39211 Fixed getlocale/setlocale bug accoriding to http://bugs.python.org/issue1699853 and http://hub.esss.com.br/wordpress/blog/archives/8561 2011-02-14 15:40:23 +01:00
Alexis Metaireau
bbd8305310 Set locale to default while writing RSS feeds
to always output RFC822 compatible dates. Fixes #67
2011-02-09 21:17:57 +00:00
Alexis Metaireau
d13e6f14fb Changes about locales and dates.
Add a way to specify the locale in the settings, and the date formating as well.
Fixes #61.
2011-02-01 21:44:50 +00:00
Alexis Metaireau
4d0e18db23 Avoid rewriting protocol related links. 2011-01-24 01:59:09 +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
03104bfbc3 Feed writer was refactored to allow more granular overriding of functionality. 2010-12-25 17:58:47 +03:00
Alexis Metaireau
836d4ea117 Refactoring, Again :)
Added some more notes about how this is working on the documentation. I do think
that the overall structure is clearer now, and easiest to understand. After all,
that's how it should always be !

--HG--
rename : pelican/processors.py => pelican/generators.py
rename : pelican/generators.py => pelican/writers.py
2010-12-02 03:22:24 +00:00