aboutsummaryrefslogtreecommitdiff
path: root/example-site
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2023-01-07 13:31:23 -0500
committerMitchell Riedstra <mitch@riedstra.dev>2023-01-07 13:31:23 -0500
commitca33a035c779ae14fb6330c8801c75f49dd1bb79 (patch)
treedeaabaf15d6d91079a68f247e46070399e4343ee /example-site
parent97dd660925434be537cd9a49a1d0c893b223e357 (diff)
downloadgo-website-0.0.22.tar.gz
go-website-0.0.22.tar.xz
Add an internal caching option. It performs quite well.v0.0.22
Also refactor and clean up most linter warnings.
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>
+