aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/404.html6
-rw-r--r--layouts/_default/single.html4
-rw-r--r--layouts/blog/list.html10
-rw-r--r--layouts/index.html18
-rw-r--r--layouts/partials/foot.html5
-rw-r--r--layouts/partials/head.html4
-rw-r--r--layouts/projects/list.html2
-rw-r--r--layouts/projects/single.html2
8 files changed, 41 insertions, 10 deletions
diff --git a/layouts/404.html b/layouts/404.html
new file mode 100644
index 0000000..85aa08e
--- /dev/null
+++ b/layouts/404.html
@@ -0,0 +1,6 @@
+{{ partial "head.html" . }}
+<h1>404: Page Not Found</h1>
+<hr>
+<p>Sorry dawg, I've got nothing for you here. How about you <a href="/">go back home</a> and enjoy the scenery?</p>
+<p>...or are you even human? Shoo! You nasty little web crawlers!</p>
+{{ partial "foot.html" . }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 6e5937b..a905db1 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,6 +1,8 @@
{{ partial "head.html" . }}
-<h2>{{$.Title}}</h2>
+<h1>{{$.Title}}</h1>
<p></p>
<hr>
+<div class="content">
{{.Content}}
+</div>
{{ partial "foot.html" . }}
diff --git a/layouts/blog/list.html b/layouts/blog/list.html
new file mode 100644
index 0000000..345b5f9
--- /dev/null
+++ b/layouts/blog/list.html
@@ -0,0 +1,10 @@
+{{ partial "head.html" . }}
+<h1>My Blogs</h1>
+<hr>
+{{ range (where (where .Site.RegularPages "Section" "blog") "Params.nohtml" "!=" "true") }}
+<div class="list p-3 rounded-3">
+<a href="{{.Permalink}}">{{.Title}}</a>
+<span><br>{{.Date.Format "January 2, 2006"}}</span>
+</div>
+{{ end }}
+{{ partial "foot.html" . }}
diff --git a/layouts/index.html b/layouts/index.html
index 4559344..478f8e9 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,10 +1,22 @@
{{ partial "head.html" . }}
-{{ range (where (where .Site.RegularPages "Section" "blog") "Params.nohtml" "!=" "true") }}
-{{- if .OutputFormats.Get "html" }}
+<h3>My Newest Project</h3>
+<hr>
+{{ range first 1 (where (where .Site.RegularPages "Section" "projects") "Params.nohtml" "!=" "true") }}
<div class="list p-3 rounded-3">
+<img src="/{{ .Params.icon }}">
<a href="{{.Permalink}}">{{.Title}}</a>
-<span><br>{{.Date.Format "January 2, 2006"}}</span>
+<p>{{ .Params.description }}</p>
+<span>Started {{ .Date.Format "January 2, 2006" }}</span>
</div>
+<br>
{{ end }}
+<h3>Recent Blog Posts</h3>
+<hr>
+{{ range first 4 (where (where .Site.RegularPages "Section" "blog") "Params.nohtml" "!=" "true") }}
+<div class="list p-3 rounded-3">
+<a href="{{.Permalink}}">{{.Title}}</a>
+<span><br>{{.Date.Format "January 2, 2006"}}</span>
+</div>
{{ end }}
+<a href="/blog" style="float: right;">View all posts -&gt;</a>
{{ partial "foot.html" . }}
diff --git a/layouts/partials/foot.html b/layouts/partials/foot.html
index 683b345..ac533f5 100644
--- a/layouts/partials/foot.html
+++ b/layouts/partials/foot.html
@@ -1,12 +1,13 @@
</div>
-<div class="col-lg-3 box rounded-3 sidebar">
+<div class="col-lg-3 box rounded-3 sidebar d-none d-lg-block mb-0">
<img class="pfp m-auto d-block mt-3 img-fluid img-circle" src="/bryson.png">
<br>
+ <span><a href="/blog/index.xml">Blog RSS</a><br></span>
<span>Codeberg/Github: <a href="https://codeberg.org/brysonsteck">@brysonsteck</a><br></span>
<span>Email: <a href="mailto:brysonsteck@protonmail.com">brysonsteck@pm.me</a><br></span>
</div>
</div>
</div>
-<footer>Copyright &copy; 2022-2023, Bryson Steck<br>All content is available under <a href="/licenses#ca-by-sa-40">CC-BY-SA 4.0.</a> This website's code is available under the <a href="/licenses#bsd-2-clause-license">BSD 2-Clause License.</a></footer>
+<footer class="px-5">Copyright &copy; 2022-2023, Bryson Steck<br>All content is available under <a href="/licenses#ca-by-sa-40">CC-BY-SA 4.0.</a> This website's code is available under the <a href="/licenses#bsd-2-clause-license">BSD 2-Clause License.</a></footer>
</body>
</html>
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index b55534a..1b9189c 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -18,9 +18,9 @@
</head>
<body class="view">
<div class="container navbar">
- <span class="navbar-title">Bryson Steck &nbsp;</span>
+ <span><a href="/" class="navbar-title">Bryson Steck</a> &nbsp;</span>
<ul class="nav">
- <li class="navbar-item"><a href="/">Blog</a></li>
+ <li class="navbar-item"><a href="/blog">Blog</a></li>
<li class="navbar-item"><a href="/projects">Projects</a></li>
<li class="navbar-item"><a href="/about-me">About Me</a></li>
<li class="navbar-item"><a href="/contact">Contact</a></li>
diff --git a/layouts/projects/list.html b/layouts/projects/list.html
index 8e5ce3a..67c8921 100644
--- a/layouts/projects/list.html
+++ b/layouts/projects/list.html
@@ -1,5 +1,5 @@
{{ partial "head.html" . }}
-<h2>My Projects</h2>
+<h1>My Projects</h1>
<hr>
{{ range .Data.Pages.ByTitle }}
<div class="list p-3 rounded-3">
diff --git a/layouts/projects/single.html b/layouts/projects/single.html
index fc01e34..9998585 100644
--- a/layouts/projects/single.html
+++ b/layouts/projects/single.html
@@ -14,7 +14,7 @@
<span class="normal-span">Built with {{ .Params.languages }}<br></span>
<span class="normal-span">Free and Open Source under the {{ .Params.license }}<br></span>
<hr>
-<div class="project">
+<div class="content">
{{.Content}}
</div>
{{ partial "foot.html" . }}