diff --git a/peji.py b/peji.py index 7ef9418..83aca72 100644 --- a/peji.py +++ b/peji.py @@ -266,7 +266,7 @@ def parse_page_metadata(text: str) -> dict: else: return None -def validate_matadata(config: dict, metadata: dict) -> dict: +def validate_metadata(config: dict, metadata: dict) -> dict: meta = {} if metadata: try: @@ -361,7 +361,7 @@ def build_site(build_dir: str): markdown_files = get_markdown_file_list(pages) for file in markdown_files: text = read_file(file) - meta = validate_matadata( + meta = validate_metadata( config, parse_page_metadata(text) ) @@ -410,4 +410,4 @@ def build(dir): click.echo('Built in: %s' % dir) if __name__ == '__main__': - cli() \ No newline at end of file + cli()