Fix some urgent SEO issues.
This commit is contained in:
parent
de03f5ae63
commit
ed57052092
@ -1030,19 +1030,25 @@ var topics_62 = []byte(`
|
||||
var topics_63 = []byte(`
|
||||
<div class="pageset">
|
||||
`)
|
||||
var topics_64 = []byte(`<div class="pageitem"><a href="?page=`)
|
||||
var topics_65 = []byte(`">Prev</a></div>`)
|
||||
var topics_66 = []byte(`
|
||||
var topics_64 = []byte(`
|
||||
<link rel="prev" href="?page=`)
|
||||
var topics_65 = []byte(`" />
|
||||
<div class="pageitem"><a href="?page=`)
|
||||
var topics_67 = []byte(`">`)
|
||||
var topics_68 = []byte(`</a></div>
|
||||
var topics_66 = []byte(`" rel="prev" aria-label="Go to the previous page">Prev</a></div>`)
|
||||
var topics_67 = []byte(`
|
||||
<div class="pageitem"><a href="?page=`)
|
||||
var topics_68 = []byte(`">`)
|
||||
var topics_69 = []byte(`</a></div>
|
||||
`)
|
||||
var topics_69 = []byte(`<div class="pageitem"><a href="?page=`)
|
||||
var topics_70 = []byte(`">Next</a></div>`)
|
||||
var topics_71 = []byte(`
|
||||
var topics_70 = []byte(`
|
||||
<link rel="next" href="?page=`)
|
||||
var topics_71 = []byte(`" />
|
||||
<div class="pageitem"><a href="?page=`)
|
||||
var topics_72 = []byte(`" rel="next" aria-label="Go to the next page">Next</a></div>`)
|
||||
var topics_73 = []byte(`
|
||||
</div>
|
||||
`)
|
||||
var topics_72 = []byte(`
|
||||
var topics_74 = []byte(`
|
||||
|
||||
</main>
|
||||
`)
|
||||
|
@ -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)
|
||||
|
@ -128,11 +128,15 @@
|
||||
|
||||
{{if gt .LastPage 1}}
|
||||
<div class="pageset">
|
||||
{{if gt .Page 1}}<div class="pageitem"><a href="?page={{subtract .Page 1}}">Prev</a></div>{{end}}
|
||||
{{if gt .Page 1}}
|
||||
<link rel="prev" href="?page={{subtract .Page 1}}" />
|
||||
<div class="pageitem"><a href="?page={{subtract .Page 1}}" rel="prev" aria-label="Go to the previous page">Prev</a></div>{{end}}
|
||||
{{range .PageList}}
|
||||
<div class="pageitem"><a href="?page={{.}}">{{.}}</a></div>
|
||||
{{end}}
|
||||
{{if ne .LastPage .Page}}<div class="pageitem"><a href="?page={{add .Page 1}}">Next</a></div>{{end}}
|
||||
{{if ne .LastPage .Page}}
|
||||
<link rel="next" href="?page={{add .Page 1}}" />
|
||||
<div class="pageitem"><a href="?page={{add .Page 1}}" rel="next" aria-label="Go to the next page">Next</a></div>{{end}}
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user