🗃️ 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

@ -39,9 +39,20 @@
</aside>
{{ end }}
{{ with .Resources.Get "data/jobs.yaml" }}
{{ with . | transform.Unmarshal -}}
<div class="post-content">
{{ .Content }}
<section id="workhistory">
{{ $.Content }}
{{ partial "jobs.resume.html" . }}
</section>
</div>
{{ else }}
{{ errorf "Unable to parse jobs" }}
{{ end }}
{{ else }}
{{ errorf "Unable to read jobs" }}
{{ end }}
{{ with .Resources.Get "sections/foot-015-edu.md" }}
<aside id="{{ .Params.id }}" class="{{ .Params.class }}">