aboutsummaryrefslogtreecommitdiff
path: root/example-site/tpl/edit.md
diff options
context:
space:
mode:
Diffstat (limited to 'example-site/tpl/edit.md')
-rw-r--r--example-site/tpl/edit.md27
1 files changed, 27 insertions, 0 deletions
diff --git a/example-site/tpl/edit.md b/example-site/tpl/edit.md
new file mode 100644
index 0000000..4e55f82
--- /dev/null
+++ b/example-site/tpl/edit.md
@@ -0,0 +1,27 @@
+---
+title: Editing Page
+description: Editor
+|---
+
+<form action="/edit/{{.Vars.Page}}" method="POST">
+<br />
+<label for="content">Page content:</label><br />
+<br />
+
+
+<textarea id="content" name="content" rows="24" cols="80">
+{{.Vars.Content}}
+</textarea>
+
+<br />
+<input type="submit" value="save">
+</form>
+
+
+<!-- test -->
+
+<script>
+window.addEventListener('load', (event) => {
+ document.querySelector("#edit").remove();
+});
+</script>