WIP Branch completed: Overhaul of site logic, removed comments, repositories
This commit is contained in:
@@ -1,9 +1,19 @@
|
||||
{{ template "header.tmpl" . }}
|
||||
{{ if .Success }}
|
||||
<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>admin login</title>
|
||||
</head>
|
||||
<body>
|
||||
{{ template "nav.tmpl" . }}
|
||||
{{ if . }}
|
||||
<h2>Login was <u>successful</u>!</h2>
|
||||
<p>Click <a href="/admin/post">here</a> to go to the post creation area.</p>
|
||||
{{ else }}
|
||||
<h2>Login was <u>not</u> successful!</h2>
|
||||
<h2>Login was <u>not</u> successful...</h2>
|
||||
<p>Click <a href="/admin/">here</a> to return to the login page to try again.</p>
|
||||
{{ end }}
|
||||
</body>
|
||||
|
||||
@@ -1,6 +1,16 @@
|
||||
{{ template "header.tmpl" . }}
|
||||
<html>
|
||||
<head>
|
||||
<meta lang="en">
|
||||
<meta charset="UTF-8">
|
||||
<meta name="keywords" content="blog 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>rawley.xyz | blog</title>
|
||||
</head>
|
||||
<body>
|
||||
{{ template "nav.tmpl" . }}
|
||||
<h2>Blog posts</h2>
|
||||
{{ range $val := .Posts }}
|
||||
{{ range $val := . }}
|
||||
<div class="post-record">
|
||||
<div>
|
||||
<a class="post-record-title" href="/blog/post/{{ $val.Url }}">{{ $val.Title }}</a>
|
||||
|
||||
@@ -5,33 +5,15 @@
|
||||
<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>{{ .Post.Title }}</title>
|
||||
<title>{{ .Title }}</title>
|
||||
</head>
|
||||
<body>
|
||||
{{ template "nav.tmpl" . }}
|
||||
<div>
|
||||
<h2>{{ .Post.Title }}</h2>
|
||||
<div>{{ .Post.Content | UnescapeHTML }}</div>
|
||||
<h4>Comments</h4>
|
||||
{{ range $comment := .Post.Comments }}
|
||||
<div class="comment">
|
||||
<div>
|
||||
{{ $comment.Author }} at {{ $comment.Date }}
|
||||
</div>
|
||||
<div class="comment-body">
|
||||
{{ $comment.Content }}
|
||||
</div>
|
||||
</div>
|
||||
{{ else }}
|
||||
<p>No comments...</p>
|
||||
{{ end }}
|
||||
<h4>Leave a comment!</h4>
|
||||
<form method="POST" action="/blog/post/comment">
|
||||
<input type="text" required pattern=".{3,}" title="Author name must be atleast 3 chars" placeholder="Name" maxlength="50" name="author"/>
|
||||
<input type="field" required pattern=".{15,}" title="Your comment must be atleast 15 chars" placeholder="Comment" maxlength="500" name="content" />
|
||||
<input type="text" class="captcha" required pattern="^\d+" title="The captcha must be a number" placeholder="What is {{ index .Captcha 0 }} plus {{ index .Captcha 1 }}" maxlength="10" name="captcha" />
|
||||
<input type="text" required style="display: none;" name="url" value="{{ .Post.Url }}" readonly />
|
||||
<button type="submit">Post</button>
|
||||
</form>
|
||||
</div>
|
||||
<h2>{{ .Title }}</h2>
|
||||
<div>{{ .Content | UnescapeHTML }}</div>
|
||||
<hr/>
|
||||
<p>
|
||||
This site used to have comments. Unfortunatley maintaining a comment system that can resist bots, spammers, and other hooligans is quite tiresome. Until I figure out a way to efficiently handle comments, they are disabled. Sorry for the inconvenience.
|
||||
</p>
|
||||
{{ template "footer_no_banners.tmpl" . }}
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
<!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"/>
|
||||
<script>
|
||||
setTimeout(() => {
|
||||
window.location.replace("/blog/post/" + document.getElementById("url").value)
|
||||
}, 1500)
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,25 +0,0 @@
|
||||
<!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>
|
||||
<h3>Your comment failed for one of these reasons:</h3>
|
||||
</p>
|
||||
<ul>
|
||||
<li>You failed the captcha.</li>
|
||||
<li>Your post had links in it.</li>
|
||||
<li>The name on your comment was "rawley" or "admin".</li>
|
||||
<li>You're spamming!</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,10 +1,26 @@
|
||||
{{ template "header.tmpl" . }}
|
||||
<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>crud post</title>
|
||||
</head>
|
||||
<body>
|
||||
{{ template "nav.tmpl" . }}
|
||||
<h2>Create post</h2>
|
||||
<form action="/admin/post" method="POST">
|
||||
<input type="text" placeholder="url" name="url" />
|
||||
<input required type="text" placeholder="url" name="url" />
|
||||
<input type="text" placeholder="title" name="title" />
|
||||
<textarea placeholder="post" name="content"></textarea>
|
||||
<select required name="op">
|
||||
<option value="create">create</option>
|
||||
<option value="update">update</option>
|
||||
<option value="delete">delete</option>
|
||||
</select>
|
||||
<button type="submit">Make post</button>
|
||||
<button type="clear">Clear form</button>
|
||||
</form>
|
||||
{{ template "footer.tmpl" . }}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,4 +1,14 @@
|
||||
{{ template "header.tmpl" . }}
|
||||
<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>forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
{{ template "nav.tmpl" . }}
|
||||
<h2>403 You're not allowed here >:(</h2>
|
||||
<p>Click <a href="/">here</a> to return home.</p>
|
||||
</body>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
I am an independent software engineer, and self proclaimed systems administrator from Canada. Currently, I am pursuing a degree in Computer Science, with hopes of participating in a graduate program later down the road.
|
||||
</p>
|
||||
<p>
|
||||
I am a GNU/Linux and OpenBSD enthusiast. You'll find me active in the Debian Linux, Void Linux and OpenBSD communities. My favourite programming languages are Go and Clojure. Currently, I am working on my <a href="https://gitlab.com/rawleyIfowler/rawleydotxyz">website</a>, and an open-source community based blogging network called <a href="https://gitlab.com/xrn">xrn</a>. You can check out my work on <a href="https://gitlab.com/rawleyIfowler">GitLab</a>.
|
||||
I am a GNU/Linux and OpenBSD enthusiast. You'll find me active in the Debian Linux, Void Linux and OpenBSD communities. My favourite programming languages are Go and Clojure. Currently, I am working on my <a href="https://gitlab.com/rawleyIfowler/rawleydotxyz">website</a>, and an open-source community based blogging network called <a href="https://gitlab.com/xrn">xrn</a>. All of my work is open source, you can check it out on my <a href="https://gitlab.com/rawleyIfowler">GitLab</a>.
|
||||
</p>
|
||||
<p>
|
||||
When I'm not programming, I'm either reading, cooking, playing table-top games, or walking my dog.
|
||||
|
||||
@@ -1,4 +1,15 @@
|
||||
{{ template "header.tmpl" . }}
|
||||
<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>internal server error</title>
|
||||
</head>
|
||||
<body>
|
||||
{{ template "nav.tmpl" . }}
|
||||
<h2>500 Internal server error :(</h2>
|
||||
<p>Click <a href="/">here</a> to return home.</p>
|
||||
{{ template "footer.tmpl" . }}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -5,4 +5,4 @@
|
||||
<input type="password" name="password" placeholder="password" />
|
||||
<button type="submit">Login</button>
|
||||
</form>
|
||||
{{ template "footer.tmpl" . }}
|
||||
{{ template "footer_no_banners.tmpl" . }}
|
||||
|
||||
@@ -1,7 +1,19 @@
|
||||
<!--not_found.html-->
|
||||
{{ template "header.tmpl" . }}
|
||||
<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>not found</title>
|
||||
</head>
|
||||
<body>
|
||||
{{ template "nav.tmpl" . }}
|
||||
|
||||
<h2>404 Not found :(</h2>
|
||||
<p>
|
||||
Click <a href="/">here</a> to return home.
|
||||
</p>
|
||||
{{ template "footer.tmpl" . }}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,11 +1,20 @@
|
||||
{{ template "header.tmpl" . }}
|
||||
{{ if .Success }}
|
||||
<h2>Post created successfully!</h2>
|
||||
<p>Click <a href="/blog/post/{{ .Url }}">here</a> to view the post.</p>
|
||||
<p>Click <a href="/admin/post">here</a> to return to the posting page.</p>
|
||||
<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>forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
{{ template "nav.tmpl" . }}
|
||||
{{ if . }}
|
||||
<h2>Operation performced successfuly!</h2>
|
||||
<p>Click <a href="/admin/post">here</a> to return to the management page.</p>
|
||||
{{ else }}
|
||||
<h2>Post failed to be created...</h2>
|
||||
<p>Click <a href="/admin/post">here</a> to return to the posting page.</p>
|
||||
<h2>Operation failed to perform...</h2>
|
||||
<p>Click <a href="/admin/post">here</a> to return to the management page.</p>
|
||||
{{ end }}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,16 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<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>
|
||||
<title>session revoked</title>
|
||||
</head>
|
||||
<body>
|
||||
{{ template "nav.tmpl" . }}
|
||||
<h2>403 Your session no longer exists</h2>
|
||||
<p>Click <a href="/">here</a> to return home.</p>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user