我可以使用jQuery隐藏特定html页面上的元素吗?

我的标头中有一个h2,它显示在index.html上,但是对于about.html我需要将其隐藏,有没有一种方法可以使jQuery基本上说“ if about.html hide element”?

这是HTML代码,我需要隐藏h2。

<header>
  <div class="header-container">
    <div>
      <h2 id="header-name">Matthew Pichola</h2>
      <p>mp@icloud.com</p>
    </div>
    <p class="about-link">about me</p>
  </div>
</header>