Skip to content

Commit

Permalink
Add content tag static expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
canyon289 committed Apr 29, 2022
1 parent 595f3be commit 392bf98
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pelican/tests/test_contents.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,16 @@ def test_intrasite_link_absolute(self):
'<img src="http://static.cool.site/images/poster.jpg"/>'
)

# Image link will go to static
args['content'] = (
'<meta content="{static}/images/poster.jpg"/>'
)
content = Page(**args).get_content('http://cool.site')
self.assertEqual(
content,
'<meta content="http://static.cool.site/images/poster.jpg"/>'
)

def test_intrasite_link_escape(self):
article = type(
'_DummyArticle', (object,), {'url': 'article-spaces.html'})
Expand Down

0 comments on commit 392bf98

Please sign in to comment.