aboutsummaryrefslogtreecommitdiff
path: root/example-site/tpl/dashboard.md
diff options
context:
space:
mode:
Diffstat (limited to 'example-site/tpl/dashboard.md')
-rw-r--r--example-site/tpl/dashboard.md53
1 files changed, 53 insertions, 0 deletions
diff --git a/example-site/tpl/dashboard.md b/example-site/tpl/dashboard.md
new file mode 100644
index 0000000..9b90445
--- /dev/null
+++ b/example-site/tpl/dashboard.md
@@ -0,0 +1,53 @@
+---
+title: Website Dashboard
+description: Website dashboard
+|---
+
+# Dashboard page ( File: `tpl/dashboard.md` )
+
+Almost every page on the website can be edited by simply adding `edit/` before
+the path, for instance if we want to edit our `/reIndex` page, we simply go to
+`/edit/reIndex`
+
+There are a few pages where this is not possible, such as with the dashboard and
+other templated pages like 404's and 5xx's. That being said, you can still edit
+them by referencing their path on disk.
+
+You can create new pages that way too, the new page template is
+`tpl/new-template.md` if you wish to change what the defaults are.
+
+You'll also notice there's an `edit` button in the navbar, that's a little bit
+of Javascript trickery that you'll have to edit if you wish to change the
+template directory from `tpl` to anything else.
+
+Some useful edit links:
+
+ * 4xx page [visit](/some/path/that/does/not/exist) [edit](/edit/tpl/4xx)
+ * 5xx page [visit](/tpl/5xx) [edit](/edit/tpl/5xx)
+ * New page template [visit](/tpl/new-template) [edit](/edit/tpl/new-template)
+ * Edit page [visit](/tpl/edit) [edit](/edit/tpl/edit)
+ * Login page [visit](/login) [edit](/edit/login)
+ * Base template [edit](/edit/tpl/base)
+
+A note about the base template page, editing works, but viewing does not.
+
+Pages by tags:
+
+{{range $key, $val := .Index}}
+### {{$key}}:
+
+{{range $v2 := $val}}
+ * {{$v2.Path}} [visit](/{{$v2.Path}}) [edit](/edit/{{$v2.Path}}){{end}}
+
+
+
+{{end}}
+
+
+<script>
+/*
+window.addEventListener('load', (event) => {
+ document.querySelector("#edit").remove();
+});
+*/
+</script>