diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2022-09-17 11:41:20 -0400 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2022-09-17 11:41:20 -0400 |
| commit | ccc26c3a0bb65ae2613e222c3ead7f6db377b483 (patch) | |
| tree | 6124ae75f557fffe863134b967ee7c6bfcc87d3d /example-site/tpl/edit.md | |
| parent | bf7d9c79cae53f64fcd04527248987bd4e7ca3c4 (diff) | |
| download | go-website-ccc26c3a0bb65ae2613e222c3ead7f6db377b483.tar.gz go-website-ccc26c3a0bb65ae2613e222c3ead7f6db377b483.tar.xz | |
More work on the editor and update the example site to utilize it.v0.0.18
Diffstat (limited to 'example-site/tpl/edit.md')
| -rw-r--r-- | example-site/tpl/edit.md | 27 |
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> |
