danielrayjones/layouts/_partials/jobs.html

27 lines
1.1 KiB
HTML
Raw Normal View History

<ul class="history">
{{ range . }}
<li id="{{ .id }}" class="{{ .class }}">
<p>
{{ with .url }}<a href="{{ . }}">{{ end }}{{ .name | markdownify }}{{ if .url }}</a>{{ end }}
{{- with .title }}<br/><em>{{ . }}</em>{{ end -}}
{{- if or .start .end}}<br/>
{{ 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 -}}
{{- 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>