mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Make HTMLReader parse multiple occurences of metadata tags as list
this means you can now specify: <meta name="custom_field" content="value_1" /> <meta name="custom_field" content="value_2" /> and the resulting object.custom_field will be ['value_1', 'value_2']
This commit is contained in:
parent
34103cd5dd
commit
f62217f38e
5 changed files with 33 additions and 1 deletions
|
|
@ -173,6 +173,7 @@ class TestArticlesGenerator(unittest.TestCase):
|
|||
['Article with markdown containing footnotes', 'published',
|
||||
'Default', 'article'],
|
||||
['Article with template', 'published', 'Default', 'custom'],
|
||||
['Metadata tags as list!', 'published', 'Default', 'article'],
|
||||
['Rst with filename metadata', 'published', 'yeah', 'article'],
|
||||
['Test Markdown extensions', 'published', 'Default', 'article'],
|
||||
['Test markdown File', 'published', 'test', 'article'],
|
||||
|
|
@ -452,6 +453,7 @@ class TestArticlesGenerator(unittest.TestCase):
|
|||
'Article with markdown and summary metadata single',
|
||||
'Article with markdown containing footnotes',
|
||||
'Article with template',
|
||||
'Metadata tags as list!',
|
||||
'Rst with filename metadata',
|
||||
'Test Markdown extensions',
|
||||
'Test markdown File',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue