diff --git a/nikola_to_zola.py b/nikola_to_zola.py index 968e3de..08e89d7 100755 --- a/nikola_to_zola.py +++ b/nikola_to_zola.py @@ -23,6 +23,10 @@ def parse_frontmatter_line(line: str) -> tuple[str, str]: """ frontmatter = tuple(line.strip()[3:].split(": ", 1)) key = frontmatter[0] + + if key.strip().endswith(":"): + key = key[:-1] + if len(frontmatter) < 2: val = "" else: