Skip to content

Commit

Permalink
Fixed sitemap setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kugelschieber committed Jun 4, 2024
1 parent fe3af30 commit 3db3e8d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.7.1

* fixed sitemap setup

## 0.7.0

* exposed server sitemap
Expand Down
2 changes: 1 addition & 1 deletion pkg/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ type Server struct {
// The second argument is an optional template.FuncMap that will be merged with Shifu's funcmap.
func NewServer(dir string, options ServerOptions) *Server {
return &Server{
Sitemap: sitemap.New(),
router: options.Router,
dir: dir,
funcMap: options.FuncMap,
Expand Down Expand Up @@ -101,7 +102,6 @@ func (server *Server) Start(cancel context.CancelFunc) error {
return errors.New("content provider not found")
}

server.Sitemap = sitemap.New()
server.Content = cms.NewCMS(cms.Options{
Ctx: ctx,
BaseDir: server.dir,
Expand Down
2 changes: 1 addition & 1 deletion pkg/version.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package pkg

const (
version = "0.7.0"
version = "0.7.1"
)

// Version returns the Shifu version number.
Expand Down

0 comments on commit 3db3e8d

Please sign in to comment.