getpelican/pelican — pull request #1342 by smartass101 (2014-05-10 04:05:11+00:00)
Title: pelican should also parse the summary for {filename}

Pelican does not parse the summary of an article for replacing the local links with the {filename} syntax.

if the article start with :

```rst

Title
-----

:summary: I want to link a previous_ article

.. _article: {filename}my_previous_post.rst

Lorem ipsum dolor…

```

Then the interlink will not be processed and interpreted. A broken link will be inserted if I try to display this summary on the articles page.

Correction : in contents.py call the _update_content method when loading the summary :

```python
def _get_summary(self):
"""Returns the summary of an article.

This is based on the summary metadata if set, otherwise truncate the
content.
"""
if hasattr(self, '_summary'):
return self._update_content(self._summary, self._context.get('localsiteurl', ''))
…

```