From 03d596db3dc1e90fcd63ac5f203326773de75e28 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Sat, 10 Jan 2026 18:42:34 -0500 Subject: automotive spreadsheets --- assets/auto/brake.ods | Bin 0 -> 44969 bytes assets/auto/damper.ods | Bin 0 -> 17167 bytes assets/auto/spring_bar.ods | Bin 0 -> 19946 bytes assets/auto/suspension.ods | Bin 0 -> 33003 bytes assets/auto/tire.ods | Bin 0 -> 27890 bytes content/auto/index.md | 17 +++++++++++++++++ hugo.toml | 9 +++++++-- layouts/_partials/asset_table.html | 32 ++++++++++++++++++++++++++++++++ layouts/auto/page.html | 6 ++++++ layouts/list.html | 2 +- layouts/term.html | 7 ------- themes/aoidh/assets/aoidh.css | 2 +- themes/aoidh/layouts/_partials/nav.html | 1 - 13 files changed, 64 insertions(+), 12 deletions(-) create mode 100644 assets/auto/brake.ods create mode 100644 assets/auto/damper.ods create mode 100644 assets/auto/spring_bar.ods create mode 100644 assets/auto/suspension.ods create mode 100644 assets/auto/tire.ods create mode 100644 content/auto/index.md create mode 100644 layouts/_partials/asset_table.html create mode 100644 layouts/auto/page.html delete mode 100644 layouts/term.html diff --git a/assets/auto/brake.ods b/assets/auto/brake.ods new file mode 100644 index 0000000..6ab79ba Binary files /dev/null and b/assets/auto/brake.ods differ diff --git a/assets/auto/damper.ods b/assets/auto/damper.ods new file mode 100644 index 0000000..82b9ee0 Binary files /dev/null and b/assets/auto/damper.ods differ diff --git a/assets/auto/spring_bar.ods b/assets/auto/spring_bar.ods new file mode 100644 index 0000000..306127b Binary files /dev/null and b/assets/auto/spring_bar.ods differ diff --git a/assets/auto/suspension.ods b/assets/auto/suspension.ods new file mode 100644 index 0000000..e46f17d Binary files /dev/null and b/assets/auto/suspension.ods differ diff --git a/assets/auto/tire.ods b/assets/auto/tire.ods new file mode 100644 index 0000000..f02fa6c Binary files /dev/null and b/assets/auto/tire.ods differ diff --git a/content/auto/index.md b/content/auto/index.md new file mode 100644 index 0000000..f41d14f --- /dev/null +++ b/content/auto/index.md @@ -0,0 +1,17 @@ ++++ +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 2461d25..9f4bb5d 100644 --- a/hugo.toml +++ b/hugo.toml @@ -14,12 +14,17 @@ theme = 'aoidh' pageRef = '/' weight = 1 + [[menus.main]] + name = 'Auto' + pageRef = '/auto' + weight = 2 + [[menus.main]] name = 'Articles' pageRef = '/articles' - weight = 2 + weight = 3 [[menus.main]] name = 'Projects' pageRef = '/projects' - weight = 3 + weight = 4 diff --git a/layouts/_partials/asset_table.html b/layouts/_partials/asset_table.html new file mode 100644 index 0000000..116b22d --- /dev/null +++ b/layouts/_partials/asset_table.html @@ -0,0 +1,32 @@ +{{- /* +For a given collection of global resources, render a table with +the modification date of each resource and a link to the resource. +The resources must be from the assets/ directory in order to get their +modification times. + +@context {,} resource.Resources + +@example: {{ partial "asset_table.html" (resources.Match "spreadsheets/*.ods") }} +*/}} + + + + + + + + + + {{ range . }} + {{- $fpath := printf "assets/%s" .Name -}} + + + + + {{- end }} + +
Mod. dateFile
+ {{- with os.Stat $fpath -}} + {{- .ModTime | time.Format "2006-01-02" -}} + {{- end -}} + {{ path.Base .Name }}
diff --git a/layouts/auto/page.html b/layouts/auto/page.html new file mode 100644 index 0000000..eaa06d7 --- /dev/null +++ b/layouts/auto/page.html @@ -0,0 +1,6 @@ +{{ 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 cc6c7be..edee471 100644 --- a/layouts/list.html +++ b/layouts/list.html @@ -1,5 +1,5 @@ {{ define "main" }} -

{{ .Title }}

+

{{ .Title }}

diff --git a/layouts/term.html b/layouts/term.html deleted file mode 100644 index c2e7875..0000000 --- a/layouts/term.html +++ /dev/null @@ -1,7 +0,0 @@ -{{ define "main" }} -

{{ .Title }}

- {{ .Content }} - {{ range .Pages }} -

{{ .LinkTitle }}

- {{ end }} -{{ end }} diff --git a/themes/aoidh/assets/aoidh.css b/themes/aoidh/assets/aoidh.css index dafb947..e740e70 100644 --- a/themes/aoidh/assets/aoidh.css +++ b/themes/aoidh/assets/aoidh.css @@ -185,7 +185,7 @@ div { ul { margin: 0; - margin-block: 0 var(--parspace); + margin-block: 0 1em; padding: 0; padding-inline-start: 2em; } diff --git a/themes/aoidh/layouts/_partials/nav.html b/themes/aoidh/layouts/_partials/nav.html index aadd2a8..81751ef 100644 --- a/themes/aoidh/layouts/_partials/nav.html +++ b/themes/aoidh/layouts/_partials/nav.html @@ -1,4 +1,3 @@ -