fixed broken title for posting comments screens

This commit is contained in:
rawleyIfowler
2022-02-28 09:12:45 -06:00
parent 161f68ba85
commit ede5865307
4 changed files with 37 additions and 4 deletions

View File

@@ -76,7 +76,7 @@ func RenderBlogPage(c *gin.Context) {
func RenderIndividualBlogPost(c *gin.Context) {
bp := GetBlogPostById(c.Param("url"))
if bp == nil {
c.HTML(http.StatusNotFound, "not_found.tmpl", models.Page{Title: " | 404"})
c.HTML(http.StatusNotFound, "not_found.tmpl", models.Page{Title: "404"})
} else {
// Blog posts handle the title themselves
c.HTML(http.StatusOK, "blog_post.tmpl", struct {