ignore <title type="sort"> elements
This commit is contained in:
parent
372cf5eada
commit
d01bc8ed95
|
@ -95,6 +95,7 @@ def publish_mallard(module, branch, directory):
|
|||
pages = []
|
||||
for page_file in page_files:
|
||||
text = open(page_file).read()
|
||||
text = re.sub('<title.*type="sort".*</title>', '', text)
|
||||
titles = re.findall('<title.*>(.*)<\/title>', text)
|
||||
pages.append({
|
||||
'id': os.path.basename(page_file).rsplit('.', 1)[0],
|
||||
|
|
Loading…
Reference in New Issue