概要 汎用的に使える。 このブログの左側のアウトラインもこれで作成 コード <script> // H4以上も抽出する場合ここに追加 const head = document.querySelectorAll('.entry-content h1,.entry-content h2,.entry-content h3,.entry-content h4'); if (head && head .length) { let contents = ''; let beforeIndex = 1; let endTagSize = 0; const ulTag= `<ul class="side-…