Skip to content

Commit

Permalink
fix: update some value in init project
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxiaohei committed May 9, 2022
1 parent 76ed8ea commit af4f46b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pkg/cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ func initFirstPost() error {
Tags: []string{"hello"},
Template: "post.html",
AuthorName: "admin",
Comment: true,
Draft: false,
}
buf := bytes.NewBufferString("```toml\n")
if err := toml.NewEncoder(buf).Encode(post); err != nil {
Expand All @@ -167,6 +169,8 @@ func initFirstPage() error {
DateString: time.Now().Format("2006-01-02 15:04:05"),
Template: "page.html",
AuthorName: "admin",
Comment: true,
Draft: false,
},
}
buf := bytes.NewBufferString("```toml\n")
Expand Down
2 changes: 1 addition & 1 deletion pkg/ext/comments/comments.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (c *Config) Current() string {

func DefaultConfig() *Config {
return &Config{
Enabled: false,
Enabled: true,
Disqus: DefaultDisqusConfig(),
Valine: defaultValine(),
Twikoo: defaultTwikoo(),
Expand Down

0 comments on commit af4f46b

Please sign in to comment.