Justin Mayer
24515c2cf0
Merge pull request #2476 from oulenz/collections
...
Try importing from collections.abc for compatibility with Python 3.8
2019-04-25 14:05:31 +02:00
Marcin Juszkiewicz
8520840be6
Provide 'all_articles' variable to period pages
...
This allows 'recent posts' functionality to work properly.
2019-04-19 19:45:23 +02:00
Justin Mayer
396b679976
Merge pull request #2535 from oulenz/translations_ids
...
Fix bug in process_translations warning message generation that caused error with empty slugs
2019-03-07 21:19:08 +01:00
Justin Mayer
dde374651a
Merge pull request #2515 from bryanbrattlof/issue/2506
...
Update 'simple' theme to use new Atom/RSS settings
2019-03-07 21:16:51 +01:00
Justin Mayer
d9e98a5a39
Merge pull request #2514 from rask004/fix-2487
...
Fix pelican-import error regarding wp-attach and Unicode
2019-03-07 21:13:37 +01:00
Andrew Vant
ce9f3d55a3
Allow directories in EXTRA_PATH_METADATA
...
Metadata applied to a directory will apply to all files under
it. In case of conflicts, child paths beat parent paths, so metadata
applied to `dir/subdir/file.md` will take precedence over that applied
to `dir/subdir`, which will take precedence over just `dir`.
2019-03-06 16:21:27 -05:00
Oliver Urs Lenz
c9dc3223eb
Fix bug in process_translations warning message generation that caused error with empty slugs
2019-02-24 11:19:12 +01:00
John Franey
63a72fc619
Remove Python 3.4 references
...
This PR removes the Python 3.4 tox task and updates references in the
code to Python 3.5+.
tox complains about Python 3.4, which is EOL after next month:
> py34 installed: DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).
2019-02-06 10:23:27 -04:00
John Franey
3395e71570
Fix linting issues
...
Fixes linting issues that caused the `flake8` CI stage to fail.
2019-02-06 10:22:57 -04:00
Justin Mayer
95a6486a8b
Merge pull request #2521 from monadnoc/quickstart_en_fix
...
Fix _DEFAULT_LANGUAGE in pelican-quickstart
2019-01-27 10:36:18 +01:00
Justin Mayer
5517e0dece
Merge pull request #2508 from oulenz/feed_importer
...
Reverts bug involving strftime accidentally introduced in feed importer
2019-01-27 10:34:38 +01:00
Justin Mayer
f490618b9f
Merge pull request #2503 from mosra/paginator-broken-again
...
Pagination: the lstrip() was way too hungry, eating absolute URLs
2019-01-27 10:32:39 +01:00
Bryan Brattlof
42c27594ab
Add relative_source_path attribute to content
2019-01-26 18:47:56 -06:00
cclauss
f6724cb960
Simplify _input_compat and str_compat
...
The __six__ module provides us these same constructs using different names.
2019-01-23 19:41:44 +01:00
Jordan Nelson
15f5e81552
fixed _DEFAULT_LANGUAGE in pelican-quickstart
2019-01-22 19:59:20 -06:00
Bryan Brattlof
0153f55016
Update 'simple' theme to use new Atom/RSS settings
2019-01-15 10:59:40 -06:00
Roland Askew
2aebfd1cdc
fix pelican-import error regarding wp-attach and Uncode
2019-01-12 12:44:04 +13:00
Oliver Urs Lenz
3cdf4fd410
reverts bug involving strftime accidentally introduced in feed importer
2019-01-05 19:19:46 +01:00
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
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
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
2018-11-30 08:31:43 -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
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
Deniz Turgut
2afef16008
Use language_code if it is supported
2018-11-26 03:45:20 +03: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
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
2018-11-13 14:55:25 +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
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
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