1
0
Fork 0
forked from github/pelican
Commit graph

314 commits

Author SHA1 Message Date
Jökull Sólberg Auðunsson
4144c8d76f More forgiving date strings. 2011-11-23 20:35:18 +00:00
Christophe Chauvet
2911a38f40 Issue #181, when parse tags 2011-11-06 13:16:47 +01:00
Skami18
b9157df1a3 Fixes the bug re-introduced in 0b6896a. Thank to @mapio for noticing the problem :-) 2011-10-29 12:57:15 +02:00
Skami18
0b6896a0ab Adding a summary no more make Pelican crashes
Setting pelican.readers.Article.summary was impossible and raised an
exception because pelican.readers.Article.summary was a @property
2011-10-25 18:31:17 +02:00
Skami18
3bdb1eae0b Pelican no more use ANSI codes on Windows (CMD.exe don't support it) 2011-10-14 17:21:03 +02:00
Massimo Santini
5bcc56fed8 elativize URLs in summary as we do for content (this time by rewriting summary as a property to defer the access to content when URLs in it have been relativized by the writer). 2011-10-04 07:43:26 +02:00
Massimo Santini
8b36f90db9 Revert "Relativize URLs in summary as we do for content"
This reverts commit 5a993de400.
2011-10-04 07:31:21 +02:00
Massimo Santini
5a993de400 Relativize URLs in summary as we do for content 2011-10-03 16:11:42 +02:00
Skami18
73d9ab4763 Tracebacks are shown in debug mode 2011-09-30 16:25:32 +02:00
Skami18
87c22dc7ac Pelican exits 1 or Exception.exitcode if an exception is raised 2011-09-10 11:37:19 +02: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
Alexis Metaireau
96b52a2283 issue a warning in case no timezone is defined 2011-08-18 13:58:04 +02:00
Alexis Metaireau
b2092fe0e7 Merge pull request #156 from Natim/master
GTM Time in ATOM feeds
2011-08-18 03:53:36 -07:00
renhbo
eea6c7477d Fix an unicode error on Windows platform. 2011-08-19 02:19:44 +08:00
Skami18
26eecf082a Removed another utf-8 related bug 2011-08-16 18:43:51 +02: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
Alexis Metaireau
4a6bf81b2e remove skribit support. fixes #154 2011-08-11 23:50:04 +02:00
Alexis Metaireau
1edbe044a2 Include the "pelican-quickstart" script.
This ease the creation of a new blog. I modified slightly the code wrote by @Skami18
here: https://gist.github.com/1025236/dfa695e67482477907c79ae709ab827b20b18b04

This commit also renames the import script to "pelican-import".

Fixes #129.
2011-08-11 23:34:53 +02:00
Alexis Metaireau
c73ae02170 pep8ize 2011-08-11 22:42:20 +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
Alexis Metaireau
4685e41173 Merge pull request #152 from mviera/master
Fixing errors in ARTICLE_PERMALINK_STRUCTURE option
2011-08-04 01:19:22 -07:00
mviera
a32dc03616 Keeping simple theme up-to-date too. Issue #145 2011-08-03 22:11:16 +02:00
mviera
e8cac3bfff I change article.slug to article.url for always referencing the disqus thread to the correct url. Issue #145 2011-08-03 22:01:45 +02: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
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
Alexis Metaireau
89a48ecb1d Merge pull request #146 from mviera/master
Year and month in URL. Fixes #145
2011-07-29 13:34:23 -07: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
b892f758a8 Pelican show a warning instead of raising an exception if the author of an article is not found an there is no settings file 2011-07-26 17:45:15 +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
55bc684380 Added a head block to the simple theme. The html lang attribute of the simple theme now depends of the DEFAULT_LANG variable. 2011-07-21 19:10:38 +02:00
Skami18
dc8b168fc1 Improved the menu in themes/simple/templates/index.html. Added a #menu id 2011-07-21 18:43:18 +02:00
Skami18
3f844ee5d8 Removed an URL-related bug in templates 2011-07-21 18:41:25 +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
Skami18
bafa2154ff Added the author.html template to the simple theme. 2011-07-19 12:18:14 +02:00
Massimo Santini
dd5aeb678a Added author.html and authors.html templates and modified the docs accordingly 2011-07-16 00:44:36 +02:00
Massimo Santini
90c3b98413 Merge remote-tracking branch 'upstream/master' 2011-07-16 00:17:49 +02:00
Massimo Santini
86803b8ae4 Merge remote-tracking branch 'upstream/master' 2011-07-14 14:28:27 +02:00
Mario Rodas
dc6934be43 all test pass 2011-07-02 15:15:21 -05:00
Mario Rodas
3cd84ab396 moving tests dir 2011-07-02 14:41:39 -05:00
Michael Yanovich
9d9355c597 added ability for pelican to handle non-ascii characters when logging 2011-07-01 16:22:21 -04:00
Massimo Santini
d8da5ce590 Genetare authors pages with all their posts 2011-06-30 23:49:09 +02:00
Massimo Santini
0a26fcbd0d Avoiding to generate 1/1 if pagination is set to false 2011-06-30 23:46:29 +02:00
Simon Liedtke
9dc9fc1d40 Merge pull request #140 from borgar/date-with-seconds
Adding a date format with seconds.
2011-06-30 07:24:09 -07: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
Borgar
a6dc53fe20 Adding a date format with seconds. 2011-06-29 13:40:35 +00:00