We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 715c135 + 82e59f9 commit a1d1f07Copy full SHA for a1d1f07
tools/verify_index_fields.py
@@ -33,10 +33,10 @@ def extract_frontmatter(path):
33
content = f.read()
34
if not content.startswith('---'):
35
return None
36
- parts = content.split('---', 2)
37
- if len(parts) < 3:
38
- return None
39
- return yaml.safe_load(parts[1])
+ parts = list(yaml.safe_load_all(content))
+ if len(parts) >= 2:
+ return parts[0]
+ return None
40
41
def get_category_from_path(path):
42
match = re.match(r"content/learning-paths/([^/]+)/", path)
0 commit comments