From 97d154d31a018290c35a8c42ae5ed7cad7bb6381 Mon Sep 17 00:00:00 2001
From: Sam Anthony
Date: Wed, 21 Jan 2026 13:08:20 -0500
Subject: move automotive spreadsheets to articles section
---
content/articles/automotive-spreadsheets.md | 18 ++++++++++++++++++
content/auto/index.md | 17 -----------------
hugo.toml | 9 ++-------
layouts/_partials/articles/header.html | 8 ++++++++
layouts/_partials/footer.html | 2 +-
layouts/articles/automotive-spreadsheets.html | 6 ++++++
layouts/articles/page.html | 8 +-------
layouts/auto/page.html | 6 ------
layouts/list.html | 4 +---
themes/aoidh/assets/aoidh.css | 2 ++
themes/aoidh/layouts/_partials/date.html | 3 +++
11 files changed, 42 insertions(+), 41 deletions(-)
create mode 100644 content/articles/automotive-spreadsheets.md
delete mode 100644 content/auto/index.md
create mode 100644 layouts/_partials/articles/header.html
create mode 100644 layouts/articles/automotive-spreadsheets.html
delete mode 100644 layouts/auto/page.html
create mode 100644 themes/aoidh/layouts/_partials/date.html
diff --git a/content/articles/automotive-spreadsheets.md b/content/articles/automotive-spreadsheets.md
new file mode 100644
index 0000000..f14cd0f
--- /dev/null
+++ b/content/articles/automotive-spreadsheets.md
@@ -0,0 +1,18 @@
++++
+title = 'Automotive Spreadsheets'
+date = '2026-01-10T17:22:57-05:00'
+tags = ["Cars"]
+draft = false
+layout = "automotive-spreadsheets"
++++
+
+Collection of spreadsheets for calculating suspension dynamics, brake bias, and so on.
+_I'm not an engineer, so use at your own risk._
+
+They're pieced together using information from several sources:
+
+- _Brake Handbook_, Fred Puhn, 1985.
+- _Engineer to Win_, Carroll Smith, 1984.
+- _Race Car Vehicle Dynamics_, Milliken & Milliken, 1994.
+- [_Springs & Dampers_](https://optimumg.com/springsdampers1/): Parts One through Six, Matt Giaraffa: OptimumG, 2018.
+- _Tune to Win_, Carroll Smith, 1978.
diff --git a/content/auto/index.md b/content/auto/index.md
deleted file mode 100644
index f41d14f..0000000
--- a/content/auto/index.md
+++ /dev/null
@@ -1,17 +0,0 @@
-+++
-title = 'Auto'
-date = '2026-01-10T17:22:57-05:00'
-tags = []
-draft = false
-+++
-
-Collection of automotive-related spreadsheets for calculating suspension dynamics, brake bias, and so on.
-_I'm not an engineer, so use at your own risk._
-
-They're pieced together using information from several sources:
-
-- _Brake Handbook_, Fred Puhn, 1985.
-- _Engineer to Win_, Carroll Smith, 1984.
-- _Race Car Vehicle Dynamics_, Milliken & Milliken, 1994.
-- [_Springs & Dampers_](https://optimumg.com/springsdampers1/): Parts One through Six, Matt Giaraffa: OptimumG, 2018.
-- _Tune to Win_, Carroll Smith, 1978.
diff --git a/hugo.toml b/hugo.toml
index f955162..8b827af 100644
--- a/hugo.toml
+++ b/hugo.toml
@@ -22,20 +22,15 @@ enableGitInfo = true
pageRef = 'resume'
weight = 2
- [[menus.main]]
- name = 'Auto'
- pageRef = '/auto'
- weight = 3
-
[[menus.main]]
name = 'Articles'
pageRef = '/articles'
- weight = 4
+ weight = 3
[[menus.main]]
name = 'Projects'
pageRef = '/projects'
- weight = 5
+ weight = 4
[module]
[[module.mounts]]
diff --git a/layouts/_partials/articles/header.html b/layouts/_partials/articles/header.html
new file mode 100644
index 0000000..e415b89
--- /dev/null
+++ b/layouts/_partials/articles/header.html
@@ -0,0 +1,8 @@
+{{ .Title }}
+
+ {{- partial "date.html" .Date -}}
+ {{- if gt .Lastmod .Date -}}
+ — modified {{ partial "date.html" .Lastmod }}
+ {{- end -}}
+
+
diff --git a/layouts/_partials/footer.html b/layouts/_partials/footer.html
index 32249a9..882c3f8 100644
--- a/layouts/_partials/footer.html
+++ b/layouts/_partials/footer.html
@@ -13,6 +13,6 @@
{{- $commitUrl := printf "%s?id=%s" $baseUrl .Hash }}
Last modified {{ .CommitDate.Format "2006-01-02" }}:
{{ .AbbreviatedHash }}.
- Source code →
{{- end }}
+ Source code →
diff --git a/layouts/articles/automotive-spreadsheets.html b/layouts/articles/automotive-spreadsheets.html
new file mode 100644
index 0000000..b2e27ab
--- /dev/null
+++ b/layouts/articles/automotive-spreadsheets.html
@@ -0,0 +1,6 @@
+{{ define "main" }}
+ {{ partial "articles/header.html" . }}
+ {{ .Content }}
+ {{ partial "asset-table.html" (resources.Match "auto/*.ods") }}
+ {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
+{{ end }}
diff --git a/layouts/articles/page.html b/layouts/articles/page.html
index 8b8eb16..e15623e 100644
--- a/layouts/articles/page.html
+++ b/layouts/articles/page.html
@@ -1,11 +1,5 @@
{{ define "main" }}
- {{- $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" -}}
- {{- $dateHuman := .Date | time.Format "2006-01-02" -}}
-
-
{{ .Title }}
-
-
-
+ {{ partial "articles/header.html" . }}
{{ .Content }}
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
{{ end }}
diff --git a/layouts/auto/page.html b/layouts/auto/page.html
deleted file mode 100644
index f51c292..0000000
--- a/layouts/auto/page.html
+++ /dev/null
@@ -1,6 +0,0 @@
-{{ define "main" }}
- {{ .Title }}
- {{ .Content }}
- Spreadsheets
- {{- partial "asset-table.html" (resources.Match "auto/*.ods") }}
-{{ end }}
diff --git a/layouts/list.html b/layouts/list.html
index edee471..8c2a19f 100644
--- a/layouts/list.html
+++ b/layouts/list.html
@@ -9,10 +9,8 @@
{{ range .Pages }}
- {{- $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" -}}
- {{- $dateHuman := .Date | time.Format "2006-01-02" -}}
- |
+ {{ partial "date.html" .Date -}} |
{{ .LinkTitle }} |
{{ end }}
diff --git a/themes/aoidh/assets/aoidh.css b/themes/aoidh/assets/aoidh.css
index fbaa7c1..0d52fc3 100644
--- a/themes/aoidh/assets/aoidh.css
+++ b/themes/aoidh/assets/aoidh.css
@@ -179,6 +179,8 @@ footer :last-child {
hr {
border-top: .1rem solid #000;
+ margin-top: 0;
+ margin-bottom: 1em;
}
blockquote {
diff --git a/themes/aoidh/layouts/_partials/date.html b/themes/aoidh/layouts/_partials/date.html
new file mode 100644
index 0000000..39e108c
--- /dev/null
+++ b/themes/aoidh/layouts/_partials/date.html
@@ -0,0 +1,3 @@
+{{- $machine := . | time.Format "2006-01-02T15:04:05-07:00" -}}
+{{- $human := . | time.Format "2006-01-02" -}}
+
--
cgit v1.2.3