Skip to content

Commit 3db3e8d

Browse files
committed
Fixed sitemap setup.
1 parent fe3af30 commit 3db3e8d

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.7.1
4+
5+
* fixed sitemap setup
6+
37
## 0.7.0
48

59
* exposed server sitemap

pkg/server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ type Server struct {
5151
// The second argument is an optional template.FuncMap that will be merged with Shifu's funcmap.
5252
func NewServer(dir string, options ServerOptions) *Server {
5353
return &Server{
54+
Sitemap: sitemap.New(),
5455
router: options.Router,
5556
dir: dir,
5657
funcMap: options.FuncMap,
@@ -101,7 +102,6 @@ func (server *Server) Start(cancel context.CancelFunc) error {
101102
return errors.New("content provider not found")
102103
}
103104

104-
server.Sitemap = sitemap.New()
105105
server.Content = cms.NewCMS(cms.Options{
106106
Ctx: ctx,
107107
BaseDir: server.dir,

pkg/version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package pkg
22

33
const (
4-
version = "0.7.0"
4+
version = "0.7.1"
55
)
66

77
// Version returns the Shifu version number.

0 commit comments

Comments
 (0)