fix typo
This commit is contained in:
parent
183d7b6396
commit
4f0d5bbc0b
4
peji.py
4
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)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user