diff --git a/handlers.go b/handlers.go index e980bcf..ed79116 100755 --- a/handlers.go +++ b/handlers.go @@ -89,11 +89,10 @@ func handlePageRequest(c *gin.Context) { if !p.IsLocked && !p.IsEncrypted { p.Erase() c.Redirect(302, "/"+page+"/edit") - return } else { c.Redirect(302, "/"+page+"/view") - return } + return } rawText := p.Text.GetCurrent() rawHTML := p.RenderedPage @@ -146,6 +145,7 @@ func handlePageRequest(c *gin.Context) { "IsEncrypted": p.IsEncrypted, "ListItems": renderList(rawText), "Route": "/" + page + command, + "HasDotInName": strings.Contains(page, "."), }) } diff --git a/templates/index.tmpl b/templates/index.tmpl index cdc5d0b..2e126ff 100755 --- a/templates/index.tmpl +++ b/templates/index.tmpl @@ -82,6 +82,7 @@ -moz-box-shadow: none; box-shadow: none; resize: none; + {{ if .HasDotInName }}font-family: "Lucida Console", Monaco, monospace{{ end }} }