fixed broken title for posting comments screens
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -1,4 +1,15 @@
|
||||
{{ template "header.tmpl" . }}
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta lang="en">
|
||||
<meta charset="UTF-8">
|
||||
<meta name="keywords" content="blog resume rawley-fowler rawleyportfolio rawleyxyz rawleyfowler RF rawley fowler Rawley Fowler portfolio RawleyFowler RawleyXYZ rawleyXYZ RawleyXYZ">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link href="/static/index.css" rel="stylesheet" type="text/css">
|
||||
<title>Comment success</title>
|
||||
</head>
|
||||
<body>
|
||||
{{ template "nav.tmpl" . }}
|
||||
<h2>Your comment is being posted...</h2>
|
||||
<p>You will be redirected or, click <a href="/blog/post/{{ .Url }}">here</a> to return to the blog post.</p>
|
||||
<input value="{{ .Url }}" readonly style="display: none;" id="url"/>
|
||||
|
||||
@@ -1,4 +1,15 @@
|
||||
{{ template "header.tmpl" . }}
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta lang="en">
|
||||
<meta charset="UTF-8">
|
||||
<meta name="keywords" content="blog resume rawley-fowler rawleyportfolio rawleyxyz rawleyfowler RF rawley fowler Rawley Fowler portfolio RawleyFowler RawleyXYZ rawleyXYZ RawleyXYZ">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link href="/static/index.css" rel="stylesheet" type="text/css">
|
||||
<title>Comment failed</title>
|
||||
</head>
|
||||
<body>
|
||||
{{ template "nav.tmpl" . }}
|
||||
<h2>Your comment <u>failed</u> to be posted...</h2>
|
||||
<p>You will be redirected or, click <a href="/blog/post/{{ .Url }}">here</a> to return to the blog post.</p>
|
||||
<p>
|
||||
|
||||
@@ -1,4 +1,15 @@
|
||||
{{ template "header.tmpl" . }}
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta lang="en">
|
||||
<meta charset="UTF-8">
|
||||
<meta name="keywords" content="blog resume rawley-fowler rawleyportfolio rawleyxyz rawleyfowler RF rawley fowler Rawley Fowler portfolio RawleyFowler RawleyXYZ rawleyXYZ RawleyXYZ">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link href="/static/index.css" rel="stylesheet" type="text/css">
|
||||
<title>Comment spam</title>
|
||||
</head>
|
||||
<body>
|
||||
{{ template "nav.tmpl" . }}
|
||||
<h2>You've commented too many times, too quickly. Your comment will <u>not</u> be posted.</h2>
|
||||
<p>Click <a href="/blog/post/{{ .Url }}">here</a> to return to the post.<p>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user