def replace_wiki_links(text: str, links: list) -> str:
    """
    Replace all wiki links with hugo links in the given text.
    """
    for link in links:
        text = text.replace(link['wiki_link'], link['hugo_link'])
    return text