1
0
Fork 0
forked from github/pelican
pelican-theme/pelican
Vladimír Vondruš 673e33840d Don't process metadata links before all files are present.
The refresh_metadata_intersite_links() is called again later, so this
bit was only causing everything to be processed twice. Besides
that, it makes the processing dependent on file order -- in particular,
when metadata references a file that was not parsed yet, it reported an
"Unable to find" warning. But everything is found in the second pass, so
this only causes a superflous false warning and no change to the output.

The related test now needs to call the
refresh_metadata_intersite_links() explicitly. That function is called
from Pelican.run() and all generators but the test processes just one
page so it has no chance of being called implicitly.

Related discussion: https://github.com/getpelican/pelican/pull/2288/files#r204337359
2018-11-11 01:19:20 +01:00
..
tests Don't process metadata links before all files are present. 2018-11-11 01:19:20 +01:00
themes Updated base.html to fix issue #2404. 2018-10-28 20:08:41 -07:00
tools Convert FEED settings from %s to {slug} redux (#2432) 2018-11-03 16:12:20 +01:00
__init__.py automatically copy linked static files 2018-11-01 18:08:11 +01:00
cache.py fulfil pep8 standard 2015-08-17 13:34:32 +02:00
contents.py Don't process metadata links before all files are present. 2018-11-11 01:19:20 +01:00
generators.py Convert FEED settings from %s to {slug} redux (#2432) 2018-11-03 16:12:20 +01:00
log.py Adding --logs-deduping-min-level CLI option 2017-12-15 14:59:47 +01:00
paginator.py tweak paginator to accomodate {slug}.html patterns 2018-11-01 00:14:22 +01:00
readers.py Merge pull request #2311 from gwax/warn_rst_no_document_title 2018-04-06 11:51:22 -07:00
rstdirectives.py Fix warnings originating from bad regexes 2017-03-27 16:09:08 +02:00
server.py Merge pull request #2324 from oulenz/get_suffixes 2018-10-31 15:23:22 +01:00
settings.py Convert FEED settings from %s to {slug} redux (#2432) 2018-11-03 16:12:20 +01:00
signals.py Add a new signal: page_generator_write_page 2017-10-17 07:38:18 +05:00
urlwrappers.py control slug substitutions from settings with regex 2018-10-31 16:20:21 +01:00
utils.py automatically copy linked static files 2018-11-01 18:08:11 +01:00
writers.py control pagination per template 2018-07-12 17:39:51 +02:00