From cbb0dafad526128d10ff5f4859a1990132e4f75e Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Wed, 21 Jan 2026 00:40:17 -0500 Subject: Clean up the example site a touch and make a quick pass on the config load errors --- example-site/tpl/dashboard.md | 62 ------------------------------------------- 1 file changed, 62 deletions(-) delete mode 100644 example-site/tpl/dashboard.md (limited to 'example-site/tpl/dashboard.md') diff --git a/example-site/tpl/dashboard.md b/example-site/tpl/dashboard.md deleted file mode 100644 index 4b18b98..0000000 --- a/example-site/tpl/dashboard.md +++ /dev/null @@ -1,62 +0,0 @@ ---- -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. - - - -- cgit v1.2.3