From 4f0d5bbc0b068245f022bc0534574793b70cd6f8 Mon Sep 17 00:00:00 2001 From: gd Date: Thu, 23 Dec 2021 21:14:17 +0300 Subject: [PATCH] fix typo --- peji.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()