Skip to content

Commit

Permalink
fix: comment should be opened for page by default
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxiaohei committed May 7, 2022
1 parent d909f8b commit ab4d141
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/core/generator/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ func buildArchive(ctx *Context) error {
return err
}

zlog.Infof("archive created: %s", filename)
info, _ := os.Stat(filename)
zlog.Infof("archive created: %s, size: %d KB", filename, info.Size()/1024)
return nil
}
2 changes: 2 additions & 0 deletions pkg/core/models/page.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package models

import (
"fmt"
"os"
"path/filepath"
"pugo/pkg/core/constants"
Expand All @@ -19,6 +20,7 @@ func NewPageFromFile(path, contentDir string) (*Page, error) {
if err != nil {
return nil, err
}
fmt.Println("---", p.Title, p.Comment)

// fix slug empty
if p.Slug == "" {
Expand Down

0 comments on commit ab4d141

Please sign in to comment.