- commit
- ff33933
- parent
- a552790
- author
- Eric Bower
- date
- 2024-06-21 17:07:22 +0000 UTC
style: tweak settings
3 files changed,
+36,
-38
+4,
-11
1@@ -27,12 +27,9 @@ func main() {
2 },
3 {
4 Text: "Controllers",
5+ Href: "/controllers",
6+ Page: pager("controllers.md"),
7 Children: []*pdocs.Sitemap{
8- {
9- Text: "Overview",
10- Href: "/controllers",
11- Page: pager("controllers.md"),
12- },
13 {
14 Text: "Thunks",
15 Href: "/thunks",
16@@ -47,13 +44,9 @@ func main() {
17 },
18 {
19 Text: "Models",
20+ Href: "/models",
21+ Page: pager("models.md"),
22 Children: []*pdocs.Sitemap{
23- {
24-
25- Text: "Overview",
26- Href: "/models",
27- Page: pager("models.md"),
28- },
29 {
30
31 Text: "Store",
+13,
-1
1@@ -112,6 +112,14 @@
2 min-width: 150px;
3 }
4
5+.sidebar-list {
6+ padding: 0 0 0 1rem;
7+}
8+
9+.sidebar-list li {
10+ margin: 0 0 0.5rem 0;
11+}
12+
13 @media only screen and (max-width: 800px) {
14 body {
15 padding: 0 1rem;
16@@ -126,9 +134,13 @@
17 }
18
19 .sitemap {
20- text-align: center;
21 -moz-column-count: 2;
22 column-count: 2;
23 width: 100%;
24 }
25+
26+ .sidebar-list {
27+ padding: 0 0 0 0.6rem;
28+ margin: 0;
29+ }
30 }
1@@ -1,38 +1,31 @@
2 {{define "sitemap-footer"}}
3 <div class="sitemap text-sm mb-4">
4-<ul class="list-none">
5-{{range .Sitemap.Children -}}
6+<ul class="list-none sidebar-list">
7+{{range .Sitemap.Children}}
8 {{if .Href}}
9- <li>
10- {{- if (and $.Prev (eq $.Prev.GenHref .GenHref)) -}}
11- <a href="{{.GenHref}}" class="link-alt-adj text-md">{{.Text}}</a>
12- {{- else if (and $.Next (eq $.Next.GenHref .GenHref)) -}}
13- <a href="{{.GenHref}}" class="link-alt-adj text-md">{{.Text}}</a>
14- {{- else if (eq $.Href .GenHref) -}}
15- <a href="{{.GenHref}}" class="link-alt-hover text-md">{{.Text}}</a>
16- {{- else -}}
17- <a href="{{.GenHref}}" class="link-alt text-md">{{.Text}}</a>
18- {{- end -}}
19+ <li class="text-md">
20+ {{if (eq $.Href .GenHref)}}
21+ <a href="{{.GenHref}}" class="link-alt-hover">{{.Text}}</a>
22+ {{else}}
23+ <a href="{{.GenHref}}" class="link-alt">{{.Text}}</a>
24+ {{end}}
25 </li>
26 {{else}}
27 <li class="text-md">{{.Text}}</li>
28 {{end}}
29+
30 <ul class="list-none sidebar-list">
31- {{range .Children -}}
32- <li>
33- {{- if (and $.Prev (eq $.Prev.GenHref .GenHref)) -}}
34- <a href="{{.GenHref}}" class="link-alt-adj">{{.Text}}</a>
35- {{- else if (and $.Next (eq $.Next.GenHref .GenHref)) -}}
36- <a href="{{.GenHref}}" class="link-alt-adj">{{.Text}}</a>
37- {{- else if (eq $.Href .GenHref) -}}
38- <a href="{{.GenHref}}" class="link-alt-hover">{{.Text}}</a>
39- {{- else -}}
40- <a href="{{.GenHref}}" class="link-alt">{{.Text}}</a>
41- {{- end -}}
42- </li>
43- {{end}}
44+ {{range .Children}}
45+ <li>
46+ {{if (eq $.Href .GenHref)}}
47+ <a href="{{.GenHref}}" class="link-alt-hover">{{.Text}}</a>
48+ {{else}}
49+ <a href="{{.GenHref}}" class="link-alt">{{.Text}}</a>
50+ {{end}}
51+ </li>
52+ {{end}}
53 </ul>
54-{{- end}}
55+{{end}}
56 </ul>
57 </div>
58 {{end}}