Justin Mayer
76fa457654
Normalize whitespace via lstrip Jinja parameter
...
This adds the lstrip_blocks Jinja parameter and removes unnecessary
whitespace from a few notmyidea templates.
Note: The lstrip_blocks parameter requires Jinja 2.7+, which has been
noted in Pelican's setup.py.
Credit for this commit goes entirely to Russ Webber, who has earned my
eternal thanks for discovering and applying this useful Jinja parameter.
Refs #969
2013-08-03 16:17:26 -07:00
Justin Mayer
23e62b0056
Merge pull request #966 from jude/patch-1
...
Adding a FEED_ALL_ATOM check in the "social" div.
2013-08-03 15:16:58 -07:00
Justin Mayer
1443131fde
Merge pull request #976 from kylewm/notmyidea-active-pages
...
Modify notmyidea to include class="active" on pages
2013-08-03 15:12:52 -07:00
Justin Mayer
bea03bb4bb
Merge pull request #979 from nyergler/pagination_conf
...
Support flexible pagination configuration
2013-08-03 14:58:47 -07:00
Justin Mayer
0de44cc844
Merge pull request #964 from nickzoic/master
...
Slugify {category} in URLs. Fixes #926
2013-08-03 14:45:07 -07:00
Nathan Yergler
d61ef0c66c
Adding basic documentation for PAGINATION_PATTERNS.
2013-08-03 14:06:16 -07:00
Nathan Yergler
50ff7ce89f
Fall back to the default PAGINATION PATTERNS when none specified.
2013-08-03 14:04:58 -07:00
Justin Mayer
4d614c173b
Merge pull request #999 from nicholaskuechler/group_pdf_settings
...
Group PDF related settings together.
2013-08-03 14:00:17 -07:00
Nathan Yergler
5ffbf907de
Create new formatting context dict instead of using self.__dict__
...
Using self.__dict__ is fine, but when its mutated it changes the
object's state. Creating a new dict avoids needing to think about
that, and doesn't introduce Python 3 issues (ie, where self.number is
accidentally set to '').
2013-08-03 13:49:43 -07:00
Nicholas Kuechler
92f5c06ba6
Group PDF related settings together.
2013-08-03 14:58:52 -05:00
Justin Mayer
4c1b5c3429
Correct URL for pip install editable in docs
...
Refs # 975
2013-08-01 15:13:32 -07:00
Justin Mayer
1cebd345aa
Merge pull request #970 from russkel/themestaticdir
...
added THEME_STATIC_DIR setting
2013-08-01 08:42:13 -07:00
Alexis Metaireau
65a716ec02
Merge pull request #989 from getpelican/plugins-recipes
...
Start a section about plugin recipes in the docs
2013-08-01 05:48:53 -07:00
Alexis Métaireau
4fa9184b01
Start a section about plugin recipes in the docs
2013-08-01 14:47:56 +02:00
Nathan Yergler
74c7c72fb3
Use six.u instead of unicode.
2013-07-31 21:31:08 -07:00
Russ Webber
89034f8b3f
added THEME_STATIC_DIR setting
...
The theme static output directory path is now customisable via settings.
i.e. you can now use 'assets' instead of 'theme'.
2013-08-01 11:02:38 +08:00
Nathan Yergler
9abc08ea9f
Don't assume that PAGINATION_PATTERNS will always be present.
2013-07-31 18:57:21 -07:00
Kyle Fuller
51dc02f298
Add documentation for WITH_FUTURE_DATES
...
Closes #952
2013-07-31 23:08:42 +01:00
Kyle Fuller
80a7c3f293
Merge pull request #986 from TheHippo/patch-1
...
Fix file endings for examples
2013-07-31 14:55:06 -07:00
Philipp Klose
0e0775b74a
Fix file endings for examples
...
reStructured should use reStructured for linked documents. Markdown should use Markdown for linked documents.
2013-07-31 22:43:02 +02:00
Justin Mayer
30192b2318
Add fabfile generation to pelican-quickstart
...
This commit adds optional fabfile.py generation during the
pelican-quickstart process. Reasons include:
* "make" is cumbersome to install on Windows
* Fabric runs in any Python environment
* fabfile is just Python and thus more flexible and extensible
This is an initial implementation and does not currently provide as many
upload options as its Makefile counterpart.
Refs #584 .
2013-07-29 11:03:14 -07:00
Nathan Yergler
95890a2a61
Allow definition of pagination rules by page index.
2013-07-29 08:10:28 -04:00
Ross McFarland
71e83635ea
remove u prefix from string literal, using unicode_literals
2013-07-29 08:09:45 -04:00
Ross McFarland
0caa101ec7
use six.string_types for python 3 compat
2013-07-29 08:09:44 -04:00
Ross McFarland
e07b39dfcb
more robust PAGINATION_(URL|SAVE_AS) support
...
- add base_name and number_seperator to context to give more flexibility
when naming things
2013-07-29 08:09:44 -04:00
Ross McFarland
c5eecd23eb
PAGINATION_URL/PAGINATION_SAVE_AS implementation
...
allows the use of custom urls for pagination similar to *_URLS
2013-07-29 08:09:44 -04:00
Kyle Mahan
0ddabb95c3
Modify notmyidea to include class="active" on pages
2013-07-27 12:30:24 -07:00
Justin Mayer
e32c893aa1
Support Gaug.es analytics in notmyidea theme
2013-07-18 10:26:45 -07:00
Justin Mayer
d4b64a3c8e
Merge pull request #873 from xlz/tumblr-import
...
Support importing Tumblr
2013-07-18 09:17:26 -07:00
Jude N
c5008f61e0
Adding a FEED_ALL_ATOM check in the "social" div.
...
The head section has a tests for FEED_ALL_ATOM when building the atom link. This diff add a similar test in the "social" div.
2013-07-16 23:44:53 -04:00
Justin Mayer
9b0cfd9884
Merge pull request #883 from ben2367/author-filter
...
Add filter-author option to importer
2013-07-16 08:22:26 -07:00
Justin Mayer
f43742c3f0
Add missing SITEURL variable to tag cloud docs
2013-07-15 14:25:39 -07:00
Justin Mayer
b282b7c72d
Merge pull request #965 from cdhowie/master
...
Update tag cloud documentation
2013-07-15 13:59:23 -07:00
Chris Howie
4ca5d908ff
Update tag cloud documentation for SLUG_SUBSTITUTIONS
2013-07-15 16:48:08 -04:00
Nick Moore
9b7ae20aa9
test for author & category slugification
2013-07-15 00:22:05 +10:00
Nick Moore
6c5444eb68
do slug_substitutions on category and author ...
2013-07-14 23:01:16 +10:00
Alexis Metaireau
9f0ad2bd95
Merge pull request #958 from hrbonz/dev_server_port
...
Dev server port
2013-07-14 05:04:42 -07:00
Alexis Metaireau
5e73b7b40e
Merge pull request #954 from ajma/master
...
Adding stackoverflow to social icons
2013-07-14 03:35:13 -07:00
Alexis Metaireau
fe33d3eed5
Merge pull request #931 from Cartroo/slugsubstitutions
...
Allow text substitutions when generating slugs
2013-07-14 03:31:11 -07:00
Benjamin Port
cb650c1c99
Add filter-author option to importer
...
Allow to import post from only one author when importing data
2013-07-13 16:15:45 +02:00
Stefan hr Berder
689632835e
add port option to Makefile target serve/devserver
2013-07-07 14:28:31 +02:00
Stefan hr Berder
3a5db543bb
add port parameter to bash script
2013-07-07 13:27:50 +02:00
Lingzhu Xiang
241ac2400a
Use better titles than None for Tumblr posts without title
2013-07-07 19:05:21 +08:00
Lingzhu Xiang
75263fa852
Fix importing Tumblr photo caption
...
Besides each photo's caption, the general caption is also needed.
While we're at it, also add a linefeed at the end of file.
2013-07-07 19:05:21 +08:00
Lingzhu Xiang
00a1cbb6b8
Support importing Tumblr
...
Try to integrate Tumblr's various post types without using
additonal templates.
2013-07-07 19:05:21 +08:00
Stefan hr Berder
3da4c2e13e
add port option to pelican.server
2013-07-07 12:44:21 +02:00
Andy Pearce
39518e15ef
Allow text substitutions when generating slugs
...
The `slugify()` function used by Pelican is in general very good at
coming up with something both readable and URL-safe. However, there are
a few specific cases where it causes conflicts. One that I've run into
is using the strings `C++` and `C` as tags, both of which transform to
the slug `c`. This commit adds an optional `SLUG_SUBSTITUTIONS` setting
which is a list of 2-tuples of substitutions to be carried out
case-insensitively just prior to stripping out non-alphanumeric
characters. This allows cases like `C++` to be transformed to `CPP` or
similar. This can also improve the readability of slugs.
2013-07-04 12:17:21 +01:00
Justin Mayer
7ec4d5faa2
Merge pull request #880 from joeshaw/pre-index-fix
...
Exception on WP import looking for <pre> tag
2013-06-29 08:02:27 -07:00
Justin Mayer
ddb6d89be3
Document how to stop generation of certain pages
...
The documentation doesn't make it very clear how to prevent certain
pages from being generated, such as the Authors, Tags, and Categories
collection pages. This change makes it slightly more obvious how to
prevent these pages from being generated. Fixes #940 .
2013-06-28 19:59:00 -07:00
Andrew Ma
bed53d1c0b
Updating unit tests
2013-06-28 15:09:36 -07:00