summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2026-05-25 19:19:11 -0400
committerSam Anthony <sam@samanthony.xyz>2026-05-25 19:19:11 -0400
commit3134dbbadd01cfd3dfc201fcbc4fc8878fecbd95 (patch)
tree3ee2c247222ba412d3cc4ac5985928eca2e72d14
parent9fa6d931ff669b51b81e0fab9297195acc0e0137 (diff)
downloadsamanthony.xyz-3134dbbadd01cfd3dfc201fcbc4fc8878fecbd95.zip
merge theme into site
-rw-r--r--.gitmodules3
-rw-r--r--assets/style.css174
-rw-r--r--hugo.toml1
-rw-r--r--layouts/_partials/date.html3
-rw-r--r--layouts/_partials/head.html4
-rw-r--r--layouts/_partials/header.html1
-rw-r--r--layouts/_partials/nav.html14
m---------themes/aoidh0
8 files changed, 196 insertions, 4 deletions
diff --git a/.gitmodules b/.gitmodules
index 016f735..e69de29 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,3 +0,0 @@
-[submodule "themes/aoidh"]
- path = themes/aoidh
- url = https://git.samanthony.xyz/aoidh
diff --git a/assets/style.css b/assets/style.css
new file mode 100644
index 0000000..da77912
--- /dev/null
+++ b/assets/style.css
@@ -0,0 +1,174 @@
+:root {
+ --paper-color: #ffffea;
+ --light-yellow: #eeee9e;
+ --dark-yellow: #99994c;
+ --light-blue: #eaffff;
+ --dark-blue: #8888cc;
+ --light-gray: #eee;
+ --dark-gray: #888;
+
+ --pagewidth: 60rem;
+ --textwidth: 45rem;
+ --parspace: .5em;
+
+ --letter-page-width: 8.5in;
+ --letter-page-height: 11in;
+}
+
+html { background: var(--light-gray); }
+
+body {
+ margin: 1rem auto;
+ padding: 1rem .5rem;
+ max-width: var(--pagewidth);
+ border: 1px solid var(--dark-yellow);
+ box-shadow: 2px 2px var(--dark-yellow);
+
+ font-family: "Palatino", "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
+ line-height: 1.3em;
+ text-rendering: optimizeLegibility;
+ color: #000;
+ background: #fff;
+}
+
+#content {
+ margin: 0 auto;
+ max-width: var(--textwidth);
+}
+
+header { margin-bottom: 1rem; }
+
+footer { margin-top: 3rem; }
+footer p {
+ text-align: left;
+ font-size: 90%;
+ margin-bottom: .1em;
+}
+footer :last-child { margin-bottom: 0; }
+
+nav ul {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
+ gap: .4rem .8rem;
+ margin: 0;
+ margin-block: 0 .8rem;
+ padding: 0;
+}
+
+nav li { display: inline-block; }
+nav a {
+ display: inline-block;
+ box-sizing: border-box;
+ width: 100%;
+ text-align: center;
+ vertical-align: middle;
+ white-space: nowrap;
+ color: #000;
+ border: .1rem solid var(--dark-blue);
+ box-shadow: .1rem .1rem var(--dark-blue);
+}
+li.nav-active a {
+ font-weight: bold;
+ box-shadow: .2rem .2rem var(--dark-yellow);
+}
+li.nav-ancestor a { font-weight: bold; }
+nav a, nav a:hover, nav a:active { text-decoration: none; }
+nav a:hover { background: var(--light-blue); }
+nav a:active { box-shadow: 0 0; }
+
+.article-header { margin-bottom: 2rem; }
+
+p {
+ text-align: justify;
+ hyphens: auto;
+ text-justify: inter-word;
+ margin-top: 0;
+ margin-bottom: var(--parspace);
+}
+
+a { text-decoration: none; }
+a:hover { text-decoration: underline; }
+a:active { text-decoration: none; }
+
+h1,
+h2,
+h3 {
+ margin-block-start: .8em;
+ margin-block-end: .4em;
+}
+.title { font-size: 1.4rem; }
+h1 { font-size: 1.15rem; }
+h2 { font-size: 1.10rem; }
+h3 { font-size: 1.05rem; }
+
+table {
+ border-collapse: collapse;
+ text-align: left;
+ margin-bottom: 1rem;
+ border-left: .2rem solid var(--dark-blue);
+ box-shadow: .2rem .2rem var(--light-gray);
+}
+thead tr {
+ background: var(--light-blue);
+ border: 1px solid #000;
+}
+tbody tr { border: 1px solid var(--dark-gray); }
+th, td {
+ padding: .125em .4em;
+ vertical-align: middle;
+}
+
+hr {
+ border-top: .1rem solid #000;
+ margin-top: 0;
+ margin-bottom: 1em;
+}
+
+blockquote {
+ width: 80%;
+ margin: 0 auto var(--parspace) auto;
+}
+
+cite {
+ display: block;
+ text-align: right
+}
+
+img {
+ box-sizing: border-box;
+ max-width: 100%;
+ max-height: 90vh;
+ border: 1px solid var(--dark-gray);
+ box-shadow: .2rem .2rem var(--light-gray);
+ margin-bottom: var(--parspace);
+}
+
+div { margin-bottom: var(--parspace); }
+
+ul {
+ list-style: none;
+ margin: 0;
+ margin-block: 0 1em;
+ padding: 0;
+}
+
+main li {
+ padding-left: 1em;
+ position: relative;
+}
+main li::before {
+ content: "•";
+ position: absolute;
+ left: 0;
+}
+
+iframe {
+ width: 100%;
+ height: 85vh;
+ border: none;
+}
+
+code, .mono {
+ font-family: "IBM Plex Mono", "Source Code Pro", monospace;
+ font-size: .9em;
+}
diff --git a/hugo.toml b/hugo.toml
index 45197f2..1e7a984 100644
--- a/hugo.toml
+++ b/hugo.toml
@@ -1,7 +1,6 @@
baseURL = 'https://www.samanthony.xyz/'
languageCode = 'en-us'
title = 'Sam Anthony'
-theme = 'aoidh'
enableGitInfo = true
relativeURLs = true
diff --git a/layouts/_partials/date.html b/layouts/_partials/date.html
new file mode 100644
index 0000000..39e108c
--- /dev/null
+++ b/layouts/_partials/date.html
@@ -0,0 +1,3 @@
+{{- $machine := . | time.Format "2006-01-02T15:04:05-07:00" -}}
+{{- $human := . | time.Format "2006-01-02" -}}
+<time datetime="{{ $machine }}">{{ $human }}</time>
diff --git a/layouts/_partials/head.html b/layouts/_partials/head.html
new file mode 100644
index 0000000..d48a8fe
--- /dev/null
+++ b/layouts/_partials/head.html
@@ -0,0 +1,4 @@
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
+{{ with resources.Get "style.css" }}<link rel="stylesheet" href="{{ .RelPermalink }}">{{ end }}
diff --git a/layouts/_partials/header.html b/layouts/_partials/header.html
new file mode 100644
index 0000000..8b590e8
--- /dev/null
+++ b/layouts/_partials/header.html
@@ -0,0 +1 @@
+{{ partial "nav.html" . }}
diff --git a/layouts/_partials/nav.html b/layouts/_partials/nav.html
new file mode 100644
index 0000000..346d3ba
--- /dev/null
+++ b/layouts/_partials/nav.html
@@ -0,0 +1,14 @@
+<nav>
+ <ul>
+ {{- $currentPage := . }}
+ {{- range site.Menus.main }}
+ {{- if $currentPage.IsMenuCurrent .Menu . }}
+ <li class="nav-active"><a href="{{ .URL }}">{{ .Name }}</a></li>
+ {{- else if $currentPage.HasMenuCurrent .Menu . }}
+ <li class="nav-ancestor"><a href="{{ .URL }}">{{ .Name }}</a></li>
+ {{- else }}
+ <li><a href="{{ .URL }}">{{ .Name }}</a></li>
+ {{- end }}
+ {{- end }}
+ </ul>
+</nav>
diff --git a/themes/aoidh b/themes/aoidh
deleted file mode 160000
-Subproject edb275a2f6008dd02a41da927f8c1fde40e1ced