Cleanup
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}());
|
||||
``
|
||||
|
||||
Reference in New Issue
Block a user