def header_links(nb_path, gistID=None):
    """Create and return md header links."""

    nb_name = nb_path.name
    src = f"{nb_path.stem}.py"  # assume Jupytext Python script is the nb source

    if gistID is None:
        gistID = "{gistID}"

    badge_nbviewer = "https://raw.githubusercontent.com/jupyter/design/master/logos/Badges/nbviewer_badge.svg"
    badge_binder = "https://mybinder.org/badge_logo.svg"

    username = "zmoon92"

    return f"""
[![NBViewer]({badge_nbviewer})](https://nbviewer.jupyter.org/gist/{username}/{gistID})
(view rendered on Jupyter nbviewer)

[![Binder]({badge_binder})](https://mybinder.org/v2/gist/{username}/{gistID}/)
(open the notebook directly via MyBinder)

[View source](https://github.com/zmoon92/personal-website-nbs/blob/master/nb-src/{src})
    """.strip()