summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--assets/auto/brake.odsbin0 -> 44969 bytes
-rw-r--r--assets/auto/damper.odsbin0 -> 17167 bytes
-rw-r--r--assets/auto/spring_bar.odsbin0 -> 19946 bytes
-rw-r--r--assets/auto/suspension.odsbin0 -> 33003 bytes
-rw-r--r--assets/auto/tire.odsbin0 -> 27890 bytes
-rw-r--r--content/auto/index.md17
-rw-r--r--hugo.toml9
-rw-r--r--layouts/_partials/asset_table.html32
-rw-r--r--layouts/auto/page.html6
-rw-r--r--layouts/list.html2
-rw-r--r--layouts/term.html7
-rw-r--r--themes/aoidh/assets/aoidh.css2
-rw-r--r--themes/aoidh/layouts/_partials/nav.html1
13 files changed, 64 insertions, 12 deletions
diff --git a/assets/auto/brake.ods b/assets/auto/brake.ods
new file mode 100644
index 0000000..6ab79ba
--- /dev/null
+++ b/assets/auto/brake.ods
Binary files differ
diff --git a/assets/auto/damper.ods b/assets/auto/damper.ods
new file mode 100644
index 0000000..82b9ee0
--- /dev/null
+++ b/assets/auto/damper.ods
Binary files differ
diff --git a/assets/auto/spring_bar.ods b/assets/auto/spring_bar.ods
new file mode 100644
index 0000000..306127b
--- /dev/null
+++ b/assets/auto/spring_bar.ods
Binary files differ
diff --git a/assets/auto/suspension.ods b/assets/auto/suspension.ods
new file mode 100644
index 0000000..e46f17d
--- /dev/null
+++ b/assets/auto/suspension.ods
Binary files differ
diff --git a/assets/auto/tire.ods b/assets/auto/tire.ods
new file mode 100644
index 0000000..f02fa6c
--- /dev/null
+++ b/assets/auto/tire.ods
Binary files 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
@@ -15,11 +15,16 @@ theme = 'aoidh'
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") }}
+*/}}
+
+<table>
+ <thead>
+ <tr>
+ <th>Mod. date</th>
+ <th>File</th>
+ </tr>
+ </thead>
+ <tbody>
+ {{ range . }}
+ {{- $fpath := printf "assets/%s" .Name -}}
+ <tr>
+ <td>
+ {{- with os.Stat $fpath -}}
+ {{- .ModTime | time.Format "2006-01-02" -}}
+ {{- end -}}
+ </td>
+ <td><a href="{{ .RelPermalink }}">{{ path.Base .Name }}</a></td>
+ </tr>
+ {{- end }}
+ </tbody>
+</table>
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" }}
+ <h1 class="title">{{ .Title }}</h1>
+ {{ .Content }}
+ <h1>Spreadsheets</h1>
+ {{- 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" }}
- <h1>{{ .Title }}</h1>
+ <h1 class="title">{{ .Title }}</h1>
<table>
<thead>
<tr>
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" }}
- <h1>{{ .Title }}</h1>
- {{ .Content }}
- {{ range .Pages }}
- <h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
- {{ 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 @@
-
<nav>
<ul>
{{- $currentPage := . }}