This commit is contained in:
gd 2021-12-23 21:14:17 +03:00
parent 183d7b6396
commit 4f0d5bbc0b

View File

@ -266,7 +266,7 @@ def parse_page_metadata(text: str) -> dict:
else: else:
return None return None
def validate_matadata(config: dict, metadata: dict) -> dict: def validate_metadata(config: dict, metadata: dict) -> dict:
meta = {} meta = {}
if metadata: if metadata:
try: try:
@ -361,7 +361,7 @@ def build_site(build_dir: str):
markdown_files = get_markdown_file_list(pages) markdown_files = get_markdown_file_list(pages)
for file in markdown_files: for file in markdown_files:
text = read_file(file) text = read_file(file)
meta = validate_matadata( meta = validate_metadata(
config, config,
parse_page_metadata(text) parse_page_metadata(text)
) )