aboutsummaryrefslogtreecommitdiff
path: root/example-site
diff options
context:
space:
mode:
Diffstat (limited to 'example-site')
-rw-r--r--example-site/index.md7
-rw-r--r--example-site/reIndex.md2
-rw-r--r--example-site/tpl/dashboard.md9
3 files changed, 15 insertions, 3 deletions
diff --git a/example-site/index.md b/example-site/index.md
index f9f8fa8..7d51067 100644
--- a/example-site/index.md
+++ b/example-site/index.md
@@ -19,7 +19,7 @@ it.
## Recent Blog Entries:
-[Atom Feed](/{{.Global.App.FeedPrefix}}/Blog?limit=5&content)
+[Atom Feed]({{.Global.App.FeedPrefix}}/Blog?limit=5&content)
{{range $val := .Index.Blog.SortDate}}
* [{{$val.Date.Time.Format "2006-01-02"}} {{$val.Title}}]({{$val.Path}}){{end}}
@@ -27,7 +27,7 @@ it.
## Published Blog Entries:
{{range $val := .Index.Blog.SortDate}}{{if $val.Published}}
- * [{{$val.Date.Time.Format "2006-01-02"}} * {{$val.Title}}]({{$val.Path}}){{end}}{{end}}
+ * [{{$val.Date.Time.Format "2006-01-02"}} {{$val.Title}}]({{$val.Path}}){{end}}{{end}}
## Some internals
@@ -44,3 +44,6 @@ it.
{{.EncodeYaml .Index}}
```
+
+
+
diff --git a/example-site/reIndex.md b/example-site/reIndex.md
index 88cb278..d1938eb 100644
--- a/example-site/reIndex.md
+++ b/example-site/reIndex.md
@@ -6,7 +6,7 @@ description: >
# {{.Title}}
-{{.Global.App.ClearRedis}}
+{{.Global.App.ClearCache}}
this is the reindex page
diff --git a/example-site/tpl/dashboard.md b/example-site/tpl/dashboard.md
index 9b90445..4b18b98 100644
--- a/example-site/tpl/dashboard.md
+++ b/example-site/tpl/dashboard.md
@@ -44,6 +44,14 @@ Pages by tags:
{{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) => {
@@ -51,3 +59,4 @@ window.addEventListener('load', (event) => {
});
*/
</script>
+