mirror of https://github.com/schollz/cowyo.git
make sure to publish
This commit is contained in:
parent
1e46c40cc6
commit
ff84acd9d7
|
@ -730,6 +730,7 @@ func (s *Site) handlePublish(c *gin.Context) {
|
|||
if !p.IsPublished {
|
||||
message = "Unpublished"
|
||||
}
|
||||
s.sitemapUpToDate = false
|
||||
c.JSON(http.StatusOK, gin.H{"success": true, "message": message})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue