
      }
      
      
      {{ "/* Add permanent link next to the headers */" | safeJS }}
      var headers = document.querySelectorAll("h1, h2, h3, h4, h5, h6");

      for(var i = 0; i < headers.length; i++) {
          var a = document.createElement("a");
          a.setAttribute("class", "headerlink");
          a.setAttribute("href", "#" + headers[i].id);
          a.setAttribute("title", "Permanent link")
          a.innerHTML = {{ or .Site.Params.permalink "Â¶" }};
          headers[i].appendChild