diff --git a/_embed/public/js/editor.js b/_embed/public/js/editor.js index bcaf19fc..820663c6 100644 --- a/_embed/public/js/editor.js +++ b/_embed/public/js/editor.js @@ -188,7 +188,8 @@ document.addEventListener("DOMContentLoaded", (event) => { } let container = document.getElementById('editor'), - kind = container.dataset.kind; + kind = container.dataset.kind, + rune = container.dataset.rune; if(kind != 'frontmatter-only') { let editor = document.querySelector('.content #ace'), @@ -240,7 +241,8 @@ document.addEventListener("DOMContentLoaded", (event) => { buttons.setLoading('save') webdav.put(window.location.pathname, JSON.stringify(data), { - 'Kind': kind + 'Kind': kind, + 'Rune': rune }) .then(() => { buttons.setDone('save') diff --git a/_embed/templates/editor.tmpl b/_embed/templates/editor.tmpl index bc8c8f44..d02238d8 100644 --- a/_embed/templates/editor.tmpl +++ b/_embed/templates/editor.tmpl @@ -1,12 +1,12 @@ {{ define "content" }} {{- with .Data }} -