add post and extra legal, revamp home page

This commit is contained in:
2026-03-09 00:32:57 -06:00
parent d3efb33db8
commit f02bd683da
10 changed files with 266 additions and 47 deletions
+4 -2
View File
@@ -1,10 +1,12 @@
---
date: {{ .Date }}
# description: ""
# image: ""
lastmod: {{ now.Format "2006-01-02" }}
# image: "/images/"
# image_alt: ""
lastmod: {{ .Date }}
showTableOfContents: false
# tags: ["",]
title: "{{ replace .File.ContentBaseName `-` ` ` | title }}"
type: "post"
draft: false
---
+9
View File
@@ -172,6 +172,15 @@ pre {
border-top-color: var(--dark-tertiary-color);
}
.home-connect {
color: var(--dark-muted-color);
}
.rss-info {
border-color: var(--dark-muted-color);
color: var(--dark-muted-color) !important;
}
/* TODO: Check if this is needed or not */
/* Content links: dark mode color override */
+62 -11
View File
@@ -69,11 +69,11 @@ html {
}
body {
margin-bottom: 170px;
margin-bottom: 0;
}
body.blog-post.has-post-navigation {
margin-bottom: 80px;
margin-bottom: 0;
}
b,
@@ -301,15 +301,14 @@ a:hover .feather-sun {
/* FOOTER */
.footer {
bottom: 0;
color: inherit;
left: 0;
margin-left: 30%;
margin: 60px auto 0;
max-width: 600px;
overflow: hidden;
padding: 40px 0;
position: absolute;
padding: 40px 20px;
text-align: center;
width: 40%;
width: 100%;
box-sizing: border-box;
}
.footer span {
@@ -604,6 +603,16 @@ table td {
vertical-align: middle;
}
.view-all {
display: inline-block;
margin-top: 1.0rem;
font-size: 0.85rem;
text-decoration: none;
color: var(--accent-color);
border-top: 1px solid var(--light-secondary-color);
padding-top: 0.6rem;
}
.home-projects-card .view-all {
display: block;
margin-top: 0.8rem;
@@ -614,10 +623,49 @@ table td {
padding-top: 0.6rem;
}
.home-projects-card .view-all:hover {
.view-all:hover {
text-decoration: underline;
}
/* HOME CONNECT blurb */
.home-connect {
width: 80%;
margin: 2rem auto 0;
text-align: center;
font-size: 0.9rem;
color: var(--light-muted-color);
}
.home-connect a {
color: var(--accent-color);
text-decoration: none;
}
.home-connect a:hover {
text-decoration: underline;
}
.rss-info {
display: inline-block;
width: 1.1em;
height: 1.1em;
line-height: 1.1em;
text-align: center;
font-size: 0.7em;
font-weight: 700;
border-radius: 50%;
border: 1px solid var(--light-muted-color);
color: var(--light-muted-color) !important;
margin-left: 0.2em;
vertical-align: super;
text-decoration: none !important;
}
.rss-info:hover {
border-color: var(--accent-color);
color: var(--accent-color) !important;
}
/* SINGLE */
.post [role="doc-subtitle"] {
font-size: 1.1em;
@@ -855,6 +903,10 @@ table td {
min-width: unset;
}
.home-connect {
width: auto;
}
main#content .container {
width: 100%;
}
@@ -876,8 +928,7 @@ table td {
}
.footer {
margin-left: 0;
width: 100%;
padding: 40px 15px;
}
}
+32 -30
View File
@@ -1,39 +1,41 @@
<footer class="footer">
<!-- Option for user to inject custom html -->
{{ if .Site.Params.CustomFooterHTML }}
{{ .Site.Params.CustomFooterHTML | safeHTML }}
{{ end }}
<footer class="footer" style="margin-top: 20px;">
<!-- Option for user to inject custom html -->
{{ if .Site.Params.CustomFooterHTML }}
{{ .Site.Params.CustomFooterHTML | safeHTML }}
{{ end }}
{{ .Scratch.Set "footerText" "" }}
{{ .Scratch.Set "footerText" "" }}
{{ if (.Site.Params.Footer) }}
{{ if (.Site.Params.Footer) }}
{{ if and (eq .Kind "page") (.Date) }}
{{ .Scratch.Add "footerText" (.Date | time.Format "2006") }}
{{ else }}
{{ .Scratch.Add "footerText" (time.Now | time.Format "2006") }}
{{ end }}
{{ if and (eq .Kind "page") (.Date) }}
{{ .Scratch.Add "footerText" (.Date | time.Format "2006") }}
{{ else }}
{{ .Scratch.Add "footerText" (time.Now | time.Format "2006") }}
{{ end }}
{{ if and (eq .Kind "page") (.Lastmod) (gt (time.Format "2006" .Lastmod) (time.Format "2006" .Date)) }}
{{ .Scratch.Add "footerText" "-" }}
{{ .Scratch.Add "footerText" (.Lastmod | time.Format "2006") }}
{{ end }}
{{ if and (eq .Kind "page") (.Lastmod) (gt (time.Format "2006" .Lastmod) (time.Format "2006" .Date)) }}
{{ .Scratch.Add "footerText" "-" }}
{{ .Scratch.Add "footerText" (.Lastmod | time.Format "2006") }}
{{ end }}
{{ .Scratch.Add "footerText" " " }}
{{ .Scratch.Add "footerText" .Site.Params.Footer }}
{{ .Scratch.Add "footerText" " " }}
{{ .Scratch.Add "footerText" .Site.Params.Footer }}
{{ if and (eq .Kind "page") (.Site.Copyright) }}
{{ .Scratch.Add "footerText" " " }}
{{ .Scratch.Add "footerText" .Site.Copyright }}
{{ end }}
{{ if and (eq .Kind "page") (.Site.Copyright) }}
{{ .Scratch.Add "footerText" " " }}
{{ .Scratch.Add "footerText" .Site.Copyright }}
{{ end }}
{{ end }}
{{ end }}
{{ if (gt (.Scratch.Get "footerText" | len) 0) }}
<span>&copy; {{ .Scratch.Get "footerText" | markdownify }}</span>
{{ end }}
{{ if (gt (.Scratch.Get "footerText" | len) 0) }}
<span>&copy; {{ .Scratch.Get "footerText" | markdownify }}</span>
{{ end }}
<span>
Made with &#10084;&#65039; using <a target="_blank" href="https://github.com/gokarna-theme/gokarna-hugo">Gokarna</a>
</span>
</footer>
<span style="font-size: 0.85em; max-width: 600px; display: inline-block; line-height: 1.4; margin-top: 20px;">
&copy; Nate Anderson {{ now.Format "2006" }}. Content may be read and shared freely for personal use.
Commercial data collection is prohibited without written consent.
<a href="/terms/">Terms of Use</a>.
</span>
</footer>