🗃️ Refactor job history to use data file
This commit is contained in:
parent
47eb246b7d
commit
bc56a55a31
6 changed files with 271 additions and 134 deletions
|
|
@ -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" }}
|
||||
|
|
|
|||
|
|
@ -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 }}">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue