fix typo
This commit is contained in:
parent
183d7b6396
commit
4f0d5bbc0b
6
peji.py
6
peji.py
@ -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)
|
||||||
)
|
)
|
||||||
@ -410,4 +410,4 @@ def build(dir):
|
|||||||
click.echo('Built in: %s' % dir)
|
click.echo('Built in: %s' % dir)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
cli()
|
cli()
|
||||||
|
Loading…
Reference in New Issue
Block a user