From be4365f71e48ed8752fe1cb1fcb516280d2866a8 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Mon, 26 Jan 2026 14:00:48 -0500 Subject: add uni transcript to resume page --- content/articles/automotive-spreadsheets.md | 5 +++-- content/resume/index.md | 11 +++++++++++ layouts/_partials/asset-table.html | 3 ++- layouts/_partials/assets.html | 12 ------------ layouts/_shortcodes/asset-table.html | 12 ++++++++++++ layouts/_shortcodes/preview.html | 3 +++ layouts/articles/page.html | 1 - layouts/resume/page.html | 8 +------- static/transcript_redacted.pdf | Bin 0 -> 352538 bytes 9 files changed, 32 insertions(+), 23 deletions(-) delete mode 100644 layouts/_partials/assets.html create mode 100644 layouts/_shortcodes/asset-table.html create mode 100644 layouts/_shortcodes/preview.html create mode 100644 static/transcript_redacted.pdf diff --git a/content/articles/automotive-spreadsheets.md b/content/articles/automotive-spreadsheets.md index b4760cc..caf57fa 100644 --- a/content/articles/automotive-spreadsheets.md +++ b/content/articles/automotive-spreadsheets.md @@ -3,8 +3,6 @@ title = 'Automotive Spreadsheets' date = '2026-01-10T17:22:57-05:00' tags = ["cars"] draft = false -[assets] - 'Spreadsheets' = 'auto/*.ods' +++ Collection of spreadsheets for calculating suspension dynamics, brake bias, and so on. @@ -17,3 +15,6 @@ They're pieced together using information from several sources: - _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. + +# Spreadsheets +{{< asset-table patterns="auto/*.ods" >}} diff --git a/content/resume/index.md b/content/resume/index.md index 26752a6..93d5927 100644 --- a/content/resume/index.md +++ b/content/resume/index.md @@ -4,3 +4,14 @@ date = '2026-01-12T16:40:43-05:00' tags = [] draft = false +++ + +| Résumé | +| --- | +| [PDF →](/resume.pdf) | +| [HTML →](/resume/resume.html) + +| University transcript | +| --- | +| [PDF →](/transcript_redacted.pdf) | + +{{< preview src=/resume/resume.html >}} diff --git a/layouts/_partials/asset-table.html b/layouts/_partials/asset-table.html index df47501..edc0b01 100644 --- a/layouts/_partials/asset-table.html +++ b/layouts/_partials/asset-table.html @@ -22,8 +22,9 @@ the modification times of files when the repository is cloned. {{- range . }} + {{- $dateFmt := "2006-01-02" -}} {{- with resources.Get (printf "%s.moddate" .Name) -}} - {{- chomp .Content | time | dateFormat "2006-01-02" -}} + {{- chomp .Content | time | dateFormat $dateFmt -}} {{- end -}} {{ path.Base .Name }} diff --git a/layouts/_partials/assets.html b/layouts/_partials/assets.html deleted file mode 100644 index 8bb5d2a..0000000 --- a/layouts/_partials/assets.html +++ /dev/null @@ -1,12 +0,0 @@ -{{- /* -Render a list of tables of assets. - -@context {dict} . Mapping from section titles to asset glob patterns. - -@examle: {{ partial "assets.html" (dict "Spreadsheets" "auto/*.ods") }} -*/}} - -{{- range $title, $pattern := . -}} -

{{ strings.FirstUpper $title }}

- {{ partial "asset-table.html" (resources.Match $pattern) }} -{{- end -}} diff --git a/layouts/_shortcodes/asset-table.html b/layouts/_shortcodes/asset-table.html new file mode 100644 index 0000000..82849fd --- /dev/null +++ b/layouts/_shortcodes/asset-table.html @@ -0,0 +1,12 @@ +{{- $patterns := slice -}} +{{- range split (.Get "patterns") "," }} + {{- $pattern := strings.TrimSpace . -}} + {{- $patterns = $patterns | append $pattern -}} +{{- end -}} + +{{- $assets := slice -}} +{{- range $patterns }} + {{- $assets = union $assets (resources.Match .) -}} +{{- end -}} + +{{ partial "asset-table.html" $assets }} diff --git a/layouts/_shortcodes/preview.html b/layouts/_shortcodes/preview.html new file mode 100644 index 0000000..450b57e --- /dev/null +++ b/layouts/_shortcodes/preview.html @@ -0,0 +1,3 @@ +{{- $src := .Get "src" -}} +

Preview of {{ path.Base $src }}

+ diff --git a/layouts/articles/page.html b/layouts/articles/page.html index 357cc9f..6465f71 100644 --- a/layouts/articles/page.html +++ b/layouts/articles/page.html @@ -12,5 +12,4 @@


{{ .Content }} - {{ partial "assets" .Params.Assets }} {{ end }} diff --git a/layouts/resume/page.html b/layouts/resume/page.html index b2613c6..e0e8308 100644 --- a/layouts/resume/page.html +++ b/layouts/resume/page.html @@ -1,9 +1,3 @@ {{ define "main" }} -

Résumé

- -

Preview

- + {{ .Content }} {{ end }} diff --git a/static/transcript_redacted.pdf b/static/transcript_redacted.pdf new file mode 100644 index 0000000..1be45b6 Binary files /dev/null and b/static/transcript_redacted.pdf differ -- cgit v1.2.3