Skip to content

Commit

Permalink
default to user collection
Browse files Browse the repository at this point in the history
new posts, when no flag is specified for blog or collection, will now
default to the user collection. that is the username.
  • Loading branch information
Rob Loranger committed Jun 13, 2019
1 parent 420ea62 commit 2387401
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/options.go
Expand Up @@ -53,6 +53,10 @@ func Collection(c *cli.Context) string {
if coll := c.String("b"); coll != "" {
return coll
}
u, _ := LoadUser(c)
if u != nil {
return u.User.Username
}
return ""
}

Expand Down

0 comments on commit 2387401

Please sign in to comment.