🗃️ 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
27
layouts/_partials/jobs.resume.html
Normal file
27
layouts/_partials/jobs.resume.html
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<ul class="history">
|
||||
{{ range . }}
|
||||
|
||||
<li id="{{ .id }}" class="job {{ .class }}">
|
||||
<p class="title">
|
||||
{{- with .title }}<strong>{{ . }}</strong> / {{ end -}}
|
||||
{{ with .url }}<a href="{{ . }}">{{ end }}{{ .name | markdownify }}{{ if .url }}</a>{{ end }}
|
||||
{{- if or .start .end}}<span class="work-dates">
|
||||
{{ with .start }}<span class="work-period"><time datetime="{{ .datetime }}">{{ .text }}</time>{{ end -}}
|
||||
{{- if and .start .end}} - {{ end -}}
|
||||
{{- with .end -}}
|
||||
<span class="work-period">
|
||||
{{- with .datetime }}<time datetime="{{ . }}">{{ end }}
|
||||
{{- .text -}}
|
||||
{{- if .datetime }}</time>{{ end -}}
|
||||
</span>
|
||||
{{- end -}}
|
||||
</span>{{- end -}}
|
||||
</p>
|
||||
{{- with .headline }}<p class="headline">{{ . | markdownify }}</p>{{ end }}
|
||||
{{ with .res }}<ul class="results">
|
||||
{{ range . }}<li>{{ . | markdownify }}</li>{{ end }}
|
||||
</ul>{{ end }}
|
||||
{{- with .tech}}<p class="tech">{{ . | markdownify }}</p>{{ end -}}
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
Loading…
Add table
Add a link
Reference in a new issue