In https://github.com/abatomunkuev/static_site_generator/blob/master/ssg.py#L128 you are working with paths as strings. This will break in lots of instances (e.g., cross-platform path differences). A better solution is to use built-in path handling modules: - https://docs.python.org/3/library/os.path.html#module-os.path - https://docs.python.org/3/library/pathlib.html
In https://github.com/abatomunkuev/static_site_generator/blob/master/ssg.py#L128 you are working with paths as strings. This will break in lots of instances (e.g., cross-platform path differences). A better solution is to use built-in path handling modules: