Fix some urgent SEO issues.

This commit is contained in:
Azareal 2018-01-26 07:57:53 +00:00
parent de03f5ae63
commit ed57052092
3 changed files with 32 additions and 18 deletions

View File

@ -1030,19 +1030,25 @@ var topics_62 = []byte(`
var topics_63 = []byte(` var topics_63 = []byte(`
<div class="pageset"> <div class="pageset">
`) `)
var topics_64 = []byte(`<div class="pageitem"><a href="?page=`) var topics_64 = []byte(`
var topics_65 = []byte(`">Prev</a></div>`) <link rel="prev" href="?page=`)
var topics_66 = []byte(` var topics_65 = []byte(`" />
<div class="pageitem"><a href="?page=`) <div class="pageitem"><a href="?page=`)
var topics_67 = []byte(`">`) var topics_66 = []byte(`" rel="prev" aria-label="Go to the previous page">Prev</a></div>`)
var topics_68 = []byte(`</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(`
var topics_70 = []byte(`">Next</a></div>`) <link rel="next" href="?page=`)
var topics_71 = []byte(` 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> </div>
`) `)
var topics_72 = []byte(` var topics_74 = []byte(`
</main> </main>
`) `)

View File

@ -3,9 +3,9 @@
// Code generated by Gosora. More below: // 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. */ /* This file was automatically generated by the software. Please don't edit it as your changes may be overwritten at any moment. */
package main package main
import "strconv"
import "net/http" import "net/http"
import "./common" import "./common"
import "strconv"
// nolint // nolint
func init() { func init() {
@ -223,24 +223,28 @@ if tmpl_topics_vars.Page > 1 {
w.Write(topics_64) w.Write(topics_64)
w.Write([]byte(strconv.Itoa(tmpl_topics_vars.Page - 1))) w.Write([]byte(strconv.Itoa(tmpl_topics_vars.Page - 1)))
w.Write(topics_65) 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 { if len(tmpl_topics_vars.PageList) != 0 {
for _, item := range tmpl_topics_vars.PageList { for _, item := range tmpl_topics_vars.PageList {
w.Write(topics_66)
w.Write([]byte(strconv.Itoa(item)))
w.Write(topics_67) w.Write(topics_67)
w.Write([]byte(strconv.Itoa(item))) w.Write([]byte(strconv.Itoa(item)))
w.Write(topics_68) w.Write(topics_68)
w.Write([]byte(strconv.Itoa(item)))
w.Write(topics_69)
} }
} }
if tmpl_topics_vars.LastPage != tmpl_topics_vars.Page { 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(topics_70)
} w.Write([]byte(strconv.Itoa(tmpl_topics_vars.Page + 1)))
w.Write(topics_71) w.Write(topics_71)
} w.Write([]byte(strconv.Itoa(tmpl_topics_vars.Page + 1)))
w.Write(topics_72) w.Write(topics_72)
}
w.Write(topics_73)
}
w.Write(topics_74)
w.Write(footer_0) w.Write(footer_0)
w.Write([]byte(common.BuildWidget("footer",tmpl_topics_vars.Header))) w.Write([]byte(common.BuildWidget("footer",tmpl_topics_vars.Header)))
w.Write(footer_1) w.Write(footer_1)

View File

@ -128,11 +128,15 @@
{{if gt .LastPage 1}} {{if gt .LastPage 1}}
<div class="pageset"> <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}} {{range .PageList}}
<div class="pageitem"><a href="?page={{.}}">{{.}}</a></div> <div class="pageitem"><a href="?page={{.}}">{{.}}</a></div>
{{end}} {{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> </div>
{{end}} {{end}}