import config
_navbar = config.navbar.copy()
_navbar.insert(0, ('' + config.title + '', {"href": "/"}))
_navbar.append(("tags", {"href": "/tags.html"}))
_navbar_lis = '\n'.join(f"""
{e[0]}"""
for e in _navbar)
_head = f"""
"""
_footer = """
"""
_tail = """
"""
def mixin_tag(content: str, tag: str) -> str:
return f"""<{tag}>
{content}{tag}>
"""
def wrap_page(page: str) -> str:
return _head + mixin_tag(page, "main") + _footer + _tail