🗃️ Refactor job history to use data file

This commit is contained in:
Dan Jones 2025-11-22 16:30:04 -06:00
commit bc56a55a31
6 changed files with 271 additions and 134 deletions

View file

@ -75,7 +75,18 @@
{{ end }}
<div class="post-content">
{{ .Content }}
{{ with .Resources.Get "data/jobs.yaml" }}
{{ with . | transform.Unmarshal -}}
<section id="workhistory">
{{ $.Content }}
{{ partial "jobs.html" . }}
</section>
{{ else }}
{{ errorf "Unable to parse jobs" }}
{{ end }}
{{ else }}
{{ errorf "Unable to read jobs" }}
{{ end }}
</div>
{{ range .Resources.Match "sections/foot-*.md" }}