This commit is contained in:
2026-05-28 21:34:46 +02:00
parent 51bf489449
commit 5844a870ce
3 changed files with 44 additions and 48 deletions
+1 -3
View File
@@ -6,8 +6,7 @@
// Section 0 is pre-heading content, editable via full-page edit.
// Sections 1..N each start at a heading; that is the index sent to the server.
// Skip headings that already carry a server-rendered edit link (the diary
// slice templates bake their own edit URLs pointing at the year file).
// Skip headings that already carry a server-rendered edit link.
headings.forEach(function (h, i) {
if (h.querySelector('a.btn')) return;
var a = document.createElement('a');
@@ -18,4 +17,3 @@
h.appendChild(a);
});
}());
``