diff --git a/template_list.go b/template_list.go index fffac260..2322f8d9 100644 --- a/template_list.go +++ b/template_list.go @@ -1030,19 +1030,25 @@ var topics_62 = []byte(` var topics_63 = []byte(`
`) -var topics_64 = []byte(`
Prev
`) -var topics_66 = []byte(` +var topics_64 = []byte(` +
`) -var topics_68 = []byte(`
+var topics_66 = []byte(`" rel="prev" aria-label="Go to the previous page">Prev
`) +var topics_67 = []byte(` +
`) +var topics_69 = []byte(`
`) -var topics_69 = []byte(`
Next
`) -var topics_71 = []byte(` +var topics_70 = []byte(` + +
`) +var topics_73 = []byte(` `) -var topics_72 = []byte(` +var topics_74 = []byte(` `) diff --git a/template_topics.go b/template_topics.go index 2fe3d5a3..26af2a6e 100644 --- a/template_topics.go +++ b/template_topics.go @@ -3,9 +3,9 @@ // Code generated by Gosora. More below: /* This file was automatically generated by the software. Please don't edit it as your changes may be overwritten at any moment. */ package main -import "strconv" import "net/http" import "./common" +import "strconv" // nolint func init() { @@ -223,24 +223,28 @@ if tmpl_topics_vars.Page > 1 { w.Write(topics_64) w.Write([]byte(strconv.Itoa(tmpl_topics_vars.Page - 1))) w.Write(topics_65) +w.Write([]byte(strconv.Itoa(tmpl_topics_vars.Page - 1))) +w.Write(topics_66) } if len(tmpl_topics_vars.PageList) != 0 { for _, item := range tmpl_topics_vars.PageList { -w.Write(topics_66) -w.Write([]byte(strconv.Itoa(item))) w.Write(topics_67) w.Write([]byte(strconv.Itoa(item))) w.Write(topics_68) +w.Write([]byte(strconv.Itoa(item))) +w.Write(topics_69) } } if tmpl_topics_vars.LastPage != tmpl_topics_vars.Page { -w.Write(topics_69) -w.Write([]byte(strconv.Itoa(tmpl_topics_vars.Page + 1))) w.Write(topics_70) -} +w.Write([]byte(strconv.Itoa(tmpl_topics_vars.Page + 1))) w.Write(topics_71) -} +w.Write([]byte(strconv.Itoa(tmpl_topics_vars.Page + 1))) w.Write(topics_72) +} +w.Write(topics_73) +} +w.Write(topics_74) w.Write(footer_0) w.Write([]byte(common.BuildWidget("footer",tmpl_topics_vars.Header))) w.Write(footer_1) diff --git a/templates/topics.html b/templates/topics.html index 487ee755..755b7a73 100644 --- a/templates/topics.html +++ b/templates/topics.html @@ -128,11 +128,15 @@ {{if gt .LastPage 1}}
- {{if gt .Page 1}}
Prev
{{end}} + {{if gt .Page 1}} + +
{{end}} {{range .PageList}}
{{.}}
{{end}} - {{if ne .LastPage .Page}}
Next
{{end}} + {{if ne .LastPage .Page}} + +
{{end}}
{{end}}