def get_path(*, content: str, default: str) -> str:
    """Getting path of the file from the content of the file.

    Args:
        content: File string content.
        default: Fallback in case the permalink doesn't exists inside the file.

    Returns:
        A path from permalink or the default value.
    """
    try:
        path = content.split("permalink:")[1].split("\n")[0].strip()
    except IndexError:
        path = f"/{default}"
    return path