blob: 4b18b987b41da1f8cf7b8d63d3b91dc37d6f2940 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
---
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}}
It can also be a good idea to clear the cache on the dashboard page:
```
{{.Global.App.ClearCache}}
```
The element can be hidden, if you'd like.
<script>
/*
window.addEventListener('load', (event) => {
document.querySelector("#edit").remove();
});
*/
</script>
|