Commit graph

1,443 commits

Author SHA1 Message Date
Eric
0a6294a2a3 More clear example for related posts
The existing related posts example doesn't show properties for the collection, this could be confusing to individuals who are not programmers, because as it was the code would render five bullet points.

I am also looking to add some type of loop control or if statement to the loop to detect duplicate, I tried t a dictionary sort filter through jinja, bu that through an error, the following is not guarantted to work then:


		{% set LASTARTICLE = "notset" %}
		{% if article.related_posts %}
			<ul>
			{% for related_post in article.related_posts|dictsort(false, 'url')  %}
				{% if not (LASTARTICLE == related_post.url) %}
				   <li><a href="{{ related_post.url }}">{{ related_post.title }}</a></li>
				{% endif %}
				{% set LASTARTICLE = related_post.url %}
			{% endfor %}
			</ul>
		{% endif %}

the dicsort does not work (is this not a dict, I'm not a python guy so I'm just hacking at it.
2013-01-20 17:27:28 -06:00
Bruno Binet
e5be4b7e40 Merge pull request #658 from elemoine/github
Improve Publishing to GitHub doc section
2013-01-11 07:12:34 -08:00
Alexis Metaireau
9847394e12 Merge pull request #674 from peterdesmet/patch-2
Fixed a typo
2013-01-07 02:53:09 -08:00
Peter Desmet
696caac9b0 Fixed a typo
BeatifulSoup -> Beautiful Soup
2013-01-07 10:49:51 +01:00
Alexis Métaireau
be040715f9 remove duplicates 2013-01-02 13:46:55 +01:00
Alexis Métaireau
8cc0da67e1 Fix the THANKS file. 2013-01-02 13:43:38 +01:00
Éric Lemoine
369bb476e9 Improve Publishing to GitHub section of the doc 2013-01-01 01:01:19 +01:00
Kyle Fuller
c73dba7a7a Merge pull request #655 from wraithan/master
tiny bit of code clean up
2012-12-29 10:07:16 -08:00
Wraithan (Chris McDonald)
fcc74be267 pep8/style matching 2012-12-29 10:03:28 -08:00
Alexis Métaireau
02f984f7ef update the version of jinja needed, 2.6 is out 2012-12-18 12:34:05 +01:00
Alexis Metaireau
d879218c27 Merge pull request #620 from rskvazh/patch-1
Update docs/plugins.rst
2012-12-18 01:15:50 -08:00
Alexis Metaireau
92c085c28e Merge pull request #635 from michaelreneer/markdown-summary-metadata
Updated markdown reader to parse summary metadata as markup.
2012-12-11 05:07:30 -08:00
Alexis Metaireau
98c8db568b Merge pull request #577 from davidjb/import-improvements-slug
Provide slug storage option for posts during Pelican import
2012-12-11 03:52:12 -08:00
David Beitey
b4c5d7cf62 Store slugs in posts by default on Pelican import 2012-12-11 21:44:40 +10:00
Michael Reneer
b35947f7a6 Cleaned up markdown read. 2012-12-11 00:48:47 -05:00
Michael Reneer
f66c16bd52 Updated unit tests to test markdown summary metadata. 2012-12-11 00:37:06 -05:00
Michael Reneer
733e41a6a7 Updated markdown reader to parse summary metadata as markup. 2012-12-11 00:34:15 -05:00
Bruno Binet
f79c844855 remote duplicated import statement (thanks @traeblain) 2012-12-09 08:30:17 +01:00
Bruno Binet
e8043594f7 Merge pull request #627 from traeblain/docs-update
Documentation doesn't clearly outline what is required for each plugin in the settings
2012-12-07 12:57:13 -08:00
Trae Blain
b0ff693839 Updated plugins documentation to include actual callable names of each plugin included. 2012-12-07 14:40:44 -06:00
Roman Skvazh
694f318614 Update docs/plugins.rst
Change yuicompressor to yui_js and yui_css
2012-12-06 21:15:25 +04:00
Bruno Binet
9f66333d77 fix rst issue 2012-12-04 02:08:13 +01:00
Alexis Métaireau
625afa0621 add the changelog to the text on PyPI 2012-12-04 01:53:52 +01:00
Alexis Métaireau
f92c0cb69d update the version scheme to support micro versions 2012-12-04 01:43:19 +01:00
Justin Mayer
a07b56c02b Doc fixes and improvements 2012-12-03 16:31:55 -08:00
Alexis Métaireau
be2a3f4030 bump version number 2012-12-04 01:27:16 +01:00
Alexis Métaireau
822c63cbd7 Merge branch 'master' of github.com:getpelican/pelican 3.1 2012-12-04 01:24:09 +01:00
Alexis Métaireau
89fd11d582 tagging 3.1 2012-12-04 01:21:57 +01:00
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
e4dd5c1c00 Merge pull request #615 from bbinet/revert-523
revert #523
2012-12-03 14:05:35 -08:00
Bruno Binet
f604cc4df8 update functional tests to test TEMPLATE_PAGES feature
closes #614: cannot reproduce this issue.
2012-12-03 22:56:07 +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
Justin Mayer
6236e8f66b Updated changelog to include recent changes 2012-12-03 12:59:31 -08:00
Bruno Binet
bb2cfffe6a Merge pull request #606 from bbinet/metadata-from-filename
Extract metadata from filename
2012-12-03 01:23:16 -08:00
Bruno Binet
f86e1128f0 docfix: fix example of FILENAME_METADATA regexp 2012-12-03 10:20:43 +01:00
Bruno Binet
070fa1ff9d add more docs about FILENAME_METADATA 2012-12-03 10:20:40 +01:00
Bruno Binet
fc13ae8e76 add new file to functional test content to showcase FILENAME_METADATA
and update functional tests output
2012-12-03 09:54:43 +01:00
Bruno Binet
92b9ccb08a fix failing TestArticlesGenerator.test_generate_context test
new file have been added to the content directory so articles_expected needs to
be updated
2012-12-03 09:54:43 +01:00
Bruno Binet
dfab8ed5b9 test the "metadata from filename" feature 2012-12-03 09:54:43 +01:00
Bruno Binet
3a25f82c4f update docs/settings.rst for both DEFAULT_METADATA and FILENAME_METADATA 2012-12-03 09:53:14 +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
Bruno Binet
e14623b46c Merge pull request #611 from michaelreneer/master
Updated documentation
2012-12-02 12:25:40 -08:00
Justin Mayer
5f47523dd3 Merge pull request #570 from bcl/master-asciidoc
Add asciidoc reader support
2012-12-02 10:42:25 -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
Michael Reneer
891a66ad8b Updated documentation to reflect addition of new markdown types. 2012-12-02 13:11:47 -05:00
Bruno Binet
f9e7c86a1a Merge pull request #460 from getpelican/remove-url-rewriting
Don't rewrite URLs
2012-12-02 09:47:18 -08:00
Bruno Binet
81cb774a8e add docs for cross-site linking 2012-12-01 21:35:15 +01:00
Bruno Binet
523ac9f64c update functional test output (relative cross-site links support)
$ LC_ALL="C" pelican -o tests/output/custom/ -s samples/pelican.conf.py \
    samples/content/
$ LC_ALL="C" pelican -o tests/output/basic/ samples/content/
2012-12-01 21:33:30 +01:00
Bruno Binet
a0504aeabe add support for relative cross-site links 2012-12-01 21:32:02 +01:00