diff options
| -rw-r--r-- | content/articles/automotive-spreadsheets.md | 5 | ||||
| -rw-r--r-- | content/resume/index.md | 11 | ||||
| -rw-r--r-- | layouts/_partials/asset-table.html | 3 | ||||
| -rw-r--r-- | layouts/_partials/assets.html | 12 | ||||
| -rw-r--r-- | layouts/_shortcodes/asset-table.html | 12 | ||||
| -rw-r--r-- | layouts/_shortcodes/preview.html | 3 | ||||
| -rw-r--r-- | layouts/articles/page.html | 1 | ||||
| -rw-r--r-- | layouts/resume/page.html | 8 | ||||
| -rw-r--r-- | static/transcript_redacted.pdf | bin | 0 -> 352538 bytes |
9 files changed, 32 insertions, 23 deletions
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 . }} <tr> <td> + {{- $dateFmt := "2006-01-02" -}} {{- with resources.Get (printf "%s.moddate" .Name) -}} - {{- chomp .Content | time | dateFormat "2006-01-02" -}} + {{- chomp .Content | time | dateFormat $dateFmt -}} {{- end -}} </td> <td><a href="{{ .RelPermalink }}">{{ path.Base .Name }}</a></td> 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 := . -}} - <h1>{{ strings.FirstUpper $title }}</h1> - {{ 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" -}} +<h1>Preview of <a href="{{ $src }}"><span class="mono">{{ path.Base $src }}</span></a></h1> +<iframe src="{{ $src }}"></iframe> 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 @@ </p> <hr> {{ .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" }} - <h1 class="title">Résumé</h1> - <ul> - <li><a href="/resume.pdf">PDF →</a></li> - <li><a href="/resume/resume.html">HTML →</a></li> - </ul> - <h1>Preview</h1> - <iframe src="/resume/resume.html"></iframe> + {{ .Content }} {{ end }} diff --git a/static/transcript_redacted.pdf b/static/transcript_redacted.pdf Binary files differnew file mode 100644 index 0000000..1be45b6 --- /dev/null +++ b/static/transcript_redacted.pdf |