1
0
Fork 0
forked from github/pelican
Commit graph

3,162 commits

Author SHA1 Message Date
Vladimír Vondruš
ec2a1bd42a pagination: this lstrip() was way too hungry, eating absolute URLs.
Reverts back to how pagination worked for the {url} placeholder as I did
it in 182fb11c80. Absolute URLs with
one or two leading slashes were eaten by lstrip() and became relative,
which then caused broken links in my case.

Added extra comments to this piece of code (*and* the test) to make it
less likely that someone breaks this again in the future.
2019-01-04 22:10:53 +01:00
Vladimír Vondruš
94db14e801 docs: properly show escaped chars in SLUG_REGEX_SUBSTITUTIONS. 2019-01-04 17:08:32 +01:00
Jorge Maldonado Ventura
58be4f0e04 Fix warning message
Add space between words 'static' and 'content'
2019-01-02 13:13:16 +01:00
Justin Mayer
b6d423d2b8
Merge pull request #2415 from NicolasLM/remove-unnecessary-atom-summaries
Remove Atom summaries when they are unnecessary
2018-12-19 11:01:58 -08:00
Nicolas Le Manchet
1b8a7826c4 Remove Atom summaries when they are unnecessary
Do not include a summary tag to Atom entries when:
- the summary is empty
- the summary and the full content are the same

Fixes #2403
2018-12-18 21:57:16 +01:00
Justin Mayer
6f0743b340
Merge pull request #2492 from ixjlyons/patch-3
Remove stopserver from .PHONY prereqs in Makefile template
2018-12-12 16:58:34 -08:00
Kenneth Lyons
4a3a06af8a
Remove stopserver from .PHONY prereqs in Makefile template 2018-12-12 13:25:14 -08:00
Justin Mayer
2f077037ba Prepare for next version 2018-11-30 09:00:11 -08:00
Justin Mayer
24d6efa9fd Prepare to release Pelican 4.0.1 4.0.1 2018-11-30 08:31:43 -08:00
Justin Mayer
49c77d7412 Add upgrade notes for slug-related settings
Refs #2442
2018-11-29 08:27:34 -08:00
Justin Mayer
f7e005cd0f Add bug fixes to changelog 2018-11-29 07:55:59 -08:00
Justin Mayer
0e3c8cede7
Merge pull request #2480 from avaris/serve-log
Refactor pelican.server logging
2018-11-28 21:07:45 -08:00
Justin Mayer
6aa2ad1808
Merge pull request #2449 from stuaxo/patch-5
Make importer work again. Fixes #2448
2018-11-28 21:01:16 -08:00
Justin Mayer
227c33a57d
Merge pull request #2483 from bryanbrattlof/issue/2482
Remove unnecessary whitespace stripping in Makefile template
2018-11-28 20:46:41 -08:00
Bryan Brattlof
59cca7adb5
Remove unnecessary whitespace stripping 2018-11-28 10:31:21 -06:00
Deniz Turgut
8aeed9b7bd Refactor pelican.server logging
* Use pelican.log instead of default loggers
* Remove excessive logging (report failures if nothing matches, don't report successes)
2018-11-27 19:55:31 +03:00
Stuart Axon
a597a31dad Make the blogger tests consistant with the wp ones - cast
to list in test if needed.
2018-11-26 16:58:12 +00:00
Stuart Axon
942e462241 Don't convert posts to lists for wp importer. 2018-11-26 16:37:10 +00:00
Stuart Axon
ded234467d Update pelican_import.py
pelican-import: Move pandoc check inside loop, fixing #2448
2018-11-26 16:37:10 +00:00
Justin Mayer
3596e04639
Merge pull request #2452 from stuaxo/patch-6
Importer: Avoid downloading duplicate post attachments
2018-11-26 08:12:54 -08:00
Justin Mayer
2bef2e83cf
Merge pull request #2479 from avaris/2475
Use language_code if it is supported
2018-11-26 07:52:04 -08:00
Justin Mayer
c4eda992d5
Merge pull request #2477 from oulenz/tag_attribute
Remove non-existent tag attribute handling from Content.url_format
2018-11-25 23:34:41 -07:00
Justin Mayer
64d1a78373
Merge pull request #2478 from avaris/2474
Use pelican.server class in Invoke template
2018-11-25 23:29:45 -07:00
Deniz Turgut
2afef16008 Use language_code if it is supported 2018-11-26 03:45:20 +03:00
Bryan Brattlof
497271ea7e
List files missing tag needed to order content 2018-11-25 13:11:48 -06:00
Deniz Turgut
a3b256db1e Use pelican.server class in invoke template 2018-11-25 21:43:40 +03:00
Oliver Urs Lenz
6923a7bca0 Remove non-existent tag attribute handling from Content.url_format 2018-11-25 13:27:18 +01:00
Oliver Urs Lenz
9ae32b8ff9 Try importing from collections.abc for compatibility with Python 3.8 2018-11-24 21:59:40 +01:00
Justin Mayer
45c884cba5
Merge pull request #2447 from stuaxo/patch-4
pelican_import: Fix post titles that are entirely made of spaces
2018-11-20 15:56:23 -06:00
Justin Mayer
a0c0816191
Merge pull request #2455 from oulenz/static_content
Disinherit Page from Static so default draft status does not affect save_as
2018-11-20 15:34:27 -06:00
Stuart Axon
4d1869002e Update pelican_import.py
Use a set to avoid downloading duplicate attachments on a post more than once.
2018-11-17 15:02:31 +00:00
Oliver Urs Lenz
70b8ededa6 Disinherit Page from Static so default draft status does not affect save_as 2018-11-16 18:09:22 +01:00
Stuart Axon
033d6ac4d6 pelican_import wordpress import
get_filename:
   use "post_name", where the parameter is the postname.
   fixup names that are entirely made up of spaces.
2018-11-15 14:02:10 +00:00
Justin Mayer
940d4534a1 Prepare to release Pelican 4.0 4.0.0 2018-11-13 14:55:25 +01:00
Justin Mayer
36293da1e0 Add more changelog entries 2018-11-13 08:40:56 +01:00
Justin Mayer
a00bd6ec8b
Merge pull request #2374 from jorgesumle/hreflang
Add hreflang attribute to default themes
2018-11-12 08:15:08 +01:00
Justin Mayer
71650b408c
Merge pull request #2437 from ajorg/gentle-s-deprecation
Replace %s rather than fall back to defaults
2018-11-12 00:17:52 +01:00
Andrew Jorgensen
b1d44c1c87 Replace %s rather than fallback to defaults
3a0add4b6e caused existing configs to fall
back to defaults. But since we know exactly how to fix the user config
so that the behavior doesn't change, we should do so, while still
warning that use of %s is deprecated.

Also fixes a bug where we tried to look for %s in None.
2018-11-11 14:54:14 -08:00
Justin Mayer
9768c6ead3
Merge pull request #2440 from avaris/urlwrapper-slug
Make URLWrapper.slug settable again
2018-11-11 23:10:42 +01:00
Deniz Turgut
bc84075ded Make URLWrapper.slug settable again
Fixes #2242, Supersedes #2243
2018-11-11 21:35:51 +03:00
Justin Mayer
db586a4c59
Merge pull request #2406 from mosra/metadata-intrasite-links-process-only-once
Don't process metadata links before all files are present
2018-11-11 18:18:54 +01:00
Justin Mayer
7f7448ef76
Merge pull request #2439 from mosra/settings-paginated-templates-deprecation-fix
Fix PAGINATED_DIRECT_TEMPLATES backward compatibility handling to not crash
2018-11-11 17:40:09 +01:00
Deniz Turgut
74a2481bf3 settings: set backward-compatible PAGINATED_TEMPLATES if not present. 2018-11-11 13:59:48 +01:00
Vladimír Vondruš
4c3b6ac383 settings: add another consistency test for SLUG_SUBSTITUTIONS. 2018-11-11 13:58:55 +01:00
Vladimír Vondruš
d01614495f settings: test reading PAGINATED_DIRECT_TEMPLATES from pelicanconf.py.
At the moment aborts with the following:

      File "/usr/lib/python3.7/site-packages/pelican/settings.py", line 327, in handle_deprecated_settings
        if t not in settings['PAGINATED_TEMPLATES']:
    KeyError: 'PAGINATED_TEMPLATES'
2018-11-11 13:58:55 +01:00
Oliver Urs Lenz
dc7579582a Add more changes to changelog 2018-11-11 13:29:26 +01:00
Justin Mayer
c2e19df4c1
Merge pull request #2434 from oulenz/importer_doc
Importer docs: Warn about multiple categories in Wordpress
2018-11-11 13:04:38 +01:00
Justin Mayer
af9859d7cc Merge branch '{slug}-indent' 2018-11-11 12:55:40 +01:00
Justin Mayer
4d0de58409 Fix PyCodeStyle violations 2018-11-11 12:54:42 +01:00
Justin Mayer
686206161b Fix example sites in metadata tags list test 2018-11-11 12:00:59 +01:00