File tree 3 files changed +6
-2
lines changed
3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 0.7.1
4
+
5
+ * fixed sitemap setup
6
+
3
7
## 0.7.0
4
8
5
9
* exposed server sitemap
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ type Server struct {
51
51
// The second argument is an optional template.FuncMap that will be merged with Shifu's funcmap.
52
52
func NewServer (dir string , options ServerOptions ) * Server {
53
53
return & Server {
54
+ Sitemap : sitemap .New (),
54
55
router : options .Router ,
55
56
dir : dir ,
56
57
funcMap : options .FuncMap ,
@@ -101,7 +102,6 @@ func (server *Server) Start(cancel context.CancelFunc) error {
101
102
return errors .New ("content provider not found" )
102
103
}
103
104
104
- server .Sitemap = sitemap .New ()
105
105
server .Content = cms .NewCMS (cms.Options {
106
106
Ctx : ctx ,
107
107
BaseDir : server .dir ,
Original file line number Diff line number Diff line change 1
1
package pkg
2
2
3
3
const (
4
- version = "0.7.0 "
4
+ version = "0.7.1 "
5
5
)
6
6
7
7
// Version returns the Shifu version number.
You can’t perform that action at this time.
0 commit comments