File tree Expand file tree Collapse file tree 6 files changed +40
-36
lines changed Expand file tree Collapse file tree 6 files changed +40
-36
lines changed Original file line number Diff line number Diff line change @@ -45,20 +45,6 @@ func main() {
45
45
pdocs .AnchorTagSitemap ("How do I download files" ),
46
46
},
47
47
},
48
- {
49
- Text : "pico+" ,
50
- Href : "/plus" ,
51
- Page : pager ("plus.md" ),
52
- Tag : "pico+" ,
53
- Hidden : true ,
54
- },
55
- {
56
- Text : "Join" ,
57
- Href : "/join" ,
58
- Page : pager ("plus-join.md" ),
59
- Tag : "pico+" ,
60
- Hidden : true ,
61
- },
62
48
{
63
49
Text : "Custom domains" ,
64
50
Href : "/custom-domains" ,
@@ -133,6 +119,12 @@ func main() {
133
119
pdocs .AnchorTagSitemap ("Can I fetch Reddit RSS feeds" ),
134
120
},
135
121
},
122
+ {
123
+ Text : "pico+" ,
124
+ Href : "/plus" ,
125
+ Page : pager ("plus.md" ),
126
+ Tag : "pico+" ,
127
+ },
136
128
{
137
129
Text : "Images" ,
138
130
Href : "/images" ,
@@ -213,6 +205,12 @@ func main() {
213
205
Page : pager ("privacy.md" ),
214
206
Tag : "About" ,
215
207
},
208
+ {
209
+ Text : "Join" ,
210
+ Href : "/join" ,
211
+ Page : pager ("plus-join.md" ),
212
+ Tag : "pico+" ,
213
+ },
216
214
},
217
215
}
218
216
Original file line number Diff line number Diff line change 113
113
</p>
114
114
</div>
115
115
</div>
116
+
117
+ {{template "pager" .}}
116
118
</main>
117
119
118
120
{{template "sitemap-footer" .}}
Original file line number Diff line number Diff line change
1
+ {{ define "pager" }}
2
+ <div class="flex justify-between gap-2 my-4">
3
+ {{if .Prev}}
4
+ <div class="pager max-w-half flex items-center">
5
+ <div class="flex flex-col items-start">
6
+ <div class="text-sm font-grey-light"><< PREV</div>
7
+ <a href="{{.Prev.GenHref}}" class="text-xl link-alt-adj">{{.Prev.Text}}</a>
8
+ </div>
9
+ </div>
10
+ {{end}}
11
+
12
+ {{if .Next}}
13
+ <div class="pager max-w-half flex items-center justify-end">
14
+ <div class="flex flex-col items-end">
15
+ <div class="text-sm font-grey-light">
16
+ NEXT >>
17
+ </div>
18
+ <a href="{{.Next.GenHref}}" class="text-xl align-right link-alt-adj">{{.Next.Text}}</a>
19
+ </div>
20
+ </div>
21
+ {{end}}
22
+ </div>
23
+ {{end}}
Original file line number Diff line number Diff line change 58
58
</article>
59
59
</div>
60
60
61
+ {{template "pager" .}}
62
+
61
63
<hr class="my-4" />
62
64
63
65
{{template "footer" .}}
Original file line number Diff line number Diff line change 19
19
{{.Data.Html}}
20
20
</article>
21
21
22
- <div class="flex justify-between gap-2 my-4">
23
- {{if .Prev}}
24
- <div class="pager max-w-half flex items-center">
25
- <div class="flex flex-col items-start">
26
- <div class="text-sm font-grey-light"><< PREV</div>
27
- <a href="{{.Prev.GenHref}}" class="text-xl link-alt-adj">{{.Prev.Text}}</a>
28
- </div>
29
- </div>
30
- {{end}}
31
-
32
- {{if .Next}}
33
- <div class="pager max-w-half flex items-center justify-end">
34
- <div class="flex flex-col items-end">
35
- <div class="text-sm font-grey-light">
36
- NEXT >>
37
- </div>
38
- <a href="{{.Next.GenHref}}" class="text-xl align-right link-alt-adj">{{.Next.Text}}</a>
39
- </div>
40
- </div>
41
- {{end}}
42
- </div>
22
+ {{template "pager" .}}
43
23
</main>
44
24
45
25
{{template "sitemap-footer" .}}
Original file line number Diff line number Diff line change 1
1
{{define "sitemap-footer"}}
2
2
<div class="sitemap text-sm mb-4 text-center">
3
3
{{range .Sitemap.Children -}}
4
- {{if .Hidden}}{{continue}}{{end}}
5
4
<div>
6
5
{{- if (and $.Prev (eq $.Prev.GenHref .GenHref)) -}}
7
6
<a href="{{.GenHref}}" class="link-alt-adj">{{.Text}}</a>
You can’t perform that action at this time.
0 commit comments