').forEach(header => {
      var slug = slugify(header.textContent);
      header.id = slug;

      const anchor = document.createElement('a');
      anchor.href = '#' + slug;
      anchor.className = 'header-anchor';
      anchor.setAttribute('aria-label', 'Permalink: ' + header.textContent);
      anchor.textContent = '#';

      /* 
      anchor.addEventListener('click', e => {
        e.preventDefault();
        if (location.hash === `#`) {
          history.replaceState(null, null, `#`);
        } else