Bruno Binet
21e8087822
fix weird implementation for extension removal
...
this leads to raising exception when slug was not used to generate the url
2012-12-04 00:49:32 +01:00
Bruno Binet
8bb86d3e5d
revert #523
...
we don't need a new MARKDOWN_EXTENSIONS setting because the equivalent setting
MD_EXTENSIONS already exists.
2012-12-03 22:35:11 +01:00
Bruno Binet
dfab8ed5b9
test the "metadata from filename" feature
2012-12-03 09:54:43 +01:00
Bruno Binet
debd6fb3b4
add FILENAME_METADATA setting to extract metadata from filename
...
FILENAME_METADATA default to '(?P<date>\d{4}-\d{2}-\d{2}).*' which will allow
to extract date metadata from the filename.
2012-12-03 09:53:14 +01:00
Justin Mayer
a0049f9fcd
Strip tags from title in simple index. Fixes #612
...
This fix was applied previously to the relevant places in both the
"simple" and "notmyidea" themes, but the simple theme's index.html file
was apparently neglected.
2012-12-02 16:10:11 -08:00
Brian C. Lane
49f481e399
Add asciidoc reader support
...
http://www.methods.co.nz/asciidoc/index.html
Processes files ending in .asc with asciidoc. Extra arguments can be
passed by using the ASCIIDOC_OPTIONS config setting
2012-12-02 10:20:13 -08:00
Bruno Binet
a0504aeabe
add support for relative cross-site links
2012-12-01 21:32:02 +01:00
Bruno Binet
c74abe579b
Don't rewrite URLs
...
Remove the code that was appending ../static in front of some URLs, and add a
way to do cross-content linking.
2012-12-01 21:30:50 +01:00
Alexis Metaireau
f653118658
Merge pull request #588 from tpievila/dev_server_fix
...
Kill SimpleHTTPServer also on OS X
2012-11-29 14:08:53 -08:00
Simon
088c810b00
Change the way to compute relative paths to avoid the leading .././ when using
...
relative urls.
2012-11-29 21:50:46 +01:00
Bruno Binet
c749671778
Reimplemented the gzip compression as a plugin.
...
Extending the Writer wasn't the complete answer because the static
generator also copies some files. Instead, I implemented the work as a
plugin that attaches to the finalized event.
2012-11-29 15:00:44 +01:00
Justin Mayer
7056622322
Fix missing SITEURL and base home link
...
1. Following up on bbinet's changes in f12a297 , ensure that the notmyidea
theme's article.html template includes the SITEURL variable when
constructing URL links.
2. Add missing slash to the base.html template so that clicking on the
site header at top left refers to "/" instead of "" when SITEURL is not
defined. Otherwise, the "" target will cause the browser to load the
current page and not the site's root (as one would expect).
2012-11-27 16:01:05 -08:00
Bruno Binet
fa82e19c1f
change default value for DEFAULT_DATE to None
...
(was 'fs' => guess from file mtime)
2012-11-28 00:29:51 +01:00
Bruno Binet
801bc755b5
Merge branch 'pr/558'
...
Conflicts:
docs/settings.rst
pelican/signals.py
2012-11-23 15:32:17 +01:00
Alexis Métaireau
587184c778
trim the blocks when generating templates.
2012-11-21 16:38:27 +01:00
Alexis Metaireau
6adfec2bd5
Merge pull request #589 from tpievila/translated_pages
...
List of translations for simple and notmyidea pages
2012-11-21 07:13:26 -08:00
Tomi Pieviläinen
429991c3f9
List of translations for simple and notmyidea pages
2012-11-21 15:45:50 +02:00
Bruno Binet
a9cdf3c5a1
remove old import statement
2012-11-21 14:24:40 +01:00
Tomi Pieviläinen
e006cf04bb
Kill SimpleHTTPServer also on OS X
2012-11-21 14:02:56 +02:00
Simon
f413a8da79
Change webassets configuration for relative urls.
...
Set the ASSET_URL to be relative to the 'theme/' url, which requires to use
{{ SITEURL }}/{{ ASSET_URL }} in the template and make it works with both
relative and absolute urls.
2012-11-20 23:42:52 +01:00
Simon
00d1ea6157
Use the new generator_init signal for the assets plugin.
...
This allows to have the assets_environment in all generators.
2012-11-20 23:42:41 +01:00
Simon
09c893f3a3
Add a new signal generator_init, invoked at the end of Generator.__init__.
2012-11-20 23:42:31 +01:00
Erik Hetzner
6d745f32c0
add preread signal
2012-11-14 22:12:46 -08:00
Bruno Binet
c787e02dcc
Merge branch 'pr/555'
...
Conflicts:
pelican/contents.py
2012-11-13 01:23:31 +01:00
jawher
1b81f8b830
Move SITEURL check for feed generation from generators.py to settings.py
2012-11-12 23:01:17 +01:00
jawher
13f444260c
Avoid iterating over all settings keys to detect if a feed is enabled
2012-11-12 23:01:17 +01:00
jawher
8a72b11e3d
code style: remove unnecessary trailing \
2012-11-12 23:01:17 +01:00
jawher
b6db45420c
Default to using FEED_ALL_ATOM instead of FEED_ATOM (and likewise for RSS) in the notmyidea theme
2012-11-12 23:01:17 +01:00
jawher
fd18f2efa9
Generate links for FEED_ALL_ATOM and FEED_ALL_RSS in the simple them's head.
2012-11-12 23:01:17 +01:00
jawher
93905e828d
Split long if condition in 2 lines
2012-11-12 23:01:17 +01:00
jawher
537e9df3ed
Reworked the "unset feed_domain" warning to handle all feed variables
2012-11-12 23:01:16 +01:00
jawher
5593670759
The default settings sets up FEED_ALL_ATOM (instead of FEED_ATOM) to all.atom.xml
2012-11-12 23:01:16 +01:00
jawher
c7d87feec3
Reverted FEED_ATOM and FEED_RSS to their original behaviour and added FEED_ALL_ATOM and FEED_ALL_RSS
...
FEED_(ATOM|RSS) generated feeds include the version in the default language of a translated article,
whereas FEED_ALL(ATOM|RSS) would include *really* all posts, regardless of their language.
2012-11-12 23:01:16 +01:00
jawher
593acfc37a
Remove comment
2012-11-12 23:01:16 +01:00
jawher
721a422e5e
The all Atom and RSS feed generators should include all articles, regardless of the article's language or the site's. Fixes #550 .
2012-11-12 23:01:16 +01:00
Simon
4cfb0cd24e
Move Webassets in a plugin
2012-11-07 00:17:50 +01:00
Bruno Binet
dfa69fd383
Merge branch 'pr/571' ( closes #571 )
...
Conflicts:
docs/changelog.rst
2012-11-06 23:54:08 +01:00
Simon
1b20319074
add a warning for the users of the LESS_GENERATOR setting
2012-11-05 21:56:18 +01:00
Simon
d0f5875f66
remove the LessCSSGenerator and the related config option
2012-11-05 21:51:27 +01:00
David Beitey
1b23a4a8e1
Merge remote-tracking branch 'davidjb/decode-html-wp-titles' into wp-import-improvements
...
Conflicts:
docs/changelog.rst
2012-11-04 14:09:25 +10:00
David Beitey
528747684d
Split post content on all types of line endings for adding paragraph tags
2012-11-04 14:08:58 +10:00
David Beitey
121bc0ad5e
Optimize social icons
2012-11-04 12:49:05 +10:00
David Beitey
9fdd378687
Add Google+ social icon
2012-11-04 12:25:02 +10:00
David Beitey
41d3a1e8dd
Merge branch 'github-social-icon' into improved-icons
...
Conflicts:
docs/changelog.rst
2012-11-04 12:09:28 +10:00
David Beitey
705ab7b0f8
Improve linkedin icon
2012-11-03 22:27:33 +10:00
David Beitey
4afc32c425
GitHub icon also works for git.io addresses in social
2012-11-03 22:21:02 +10:00
David Beitey
868ef2079c
Add GitHub social icon support in default theme
...
Conflicts:
docs/changelog.rst
2012-11-03 22:13:26 +10:00
David Beitey
e2c3701757
Decode HTML entities in titles on WP import
2012-11-03 21:55:56 +10:00
Alexis Métaireau
bfc963a065
We pass lists, not dicst!
2012-10-30 18:57:06 +01:00
Alexis Métaireau
ac85e9c819
Merge branch 'pr/223'
2012-10-30 11:18:24 +01:00