Skip to content
Permalink
Browse files

Adding explanation text on draft page

  • Loading branch information...
Depado committed Sep 13, 2018
1 parent 2ba66b7 commit 76f3c1ac204b23479b238dabdc5caf1a8cf3ea7f
Showing with 2 additions and 1 deletion.
  1. +2 −1 views/views.go
@@ -38,7 +38,7 @@ func PostsByTag(c *gin.Context) {
"posts": res,
"title": viper.GetString("blog.title"),
"description": viper.GetString("blog.description"),
"extra": template.HTML(fmt.Sprintf(`Posts tagged with <span class="home-sm-tag">%s</span>`, tag)),
"extra": template.HTML(fmt.Sprintf(`Posts tagged with <span class="btn tag">%s</span>`, tag)),
"analytics": gin.H{"tag": viper.GetString("analytics.tag"), "enabled": viper.GetBool("analytics.enabled")},
"author": models.GetGlobalAuthor(),
}
@@ -100,6 +100,7 @@ func GetDrafts(c *gin.Context) {
"posts": o,
"title": viper.GetString("blog.title"),
"description": viper.GetString("blog.description"),
"extra": template.HTML(`These articles are drafts and may be incomplete`),
"analytics": gin.H{"tag": viper.GetString("analytics.tag"), "enabled": viper.GetBool("analytics.enabled")},
"author": models.GetGlobalAuthor(),
}

0 comments on commit 76f3c1a

Please sign in to comment.
You can’t perform that action at this time.