47 Zeilen
1.4 KiB
HTML
47 Zeilen
1.4 KiB
HTML
|
<!--
|
||
|
Lebenslauf renderer
|
||
|
Params:
|
||
|
file=The datafile
|
||
|
Creates a lightSlider on your page, call it with: {{/*
|
||
|
{{% lightslider name="<your-slider-name>" url="<url_or_path-to-your-slider.json" [includejs="true"] %}}
|
||
|
*/}}
|
||
|
Example: {{/*
|
||
|
{{% lebenslauf %}}
|
||
|
*/}}
|
||
|
-->
|
||
|
{{ $data := .Site.Data.lebenslauf }}
|
||
|
<h2>{{ i18n "schule" }}</h2>
|
||
|
{{ if $data.schule }}
|
||
|
<table>
|
||
|
{{ range sort $data.schule "von" "asc" }}
|
||
|
<tr>
|
||
|
<td>{{ index . "name" }}</td>
|
||
|
<td><time datetime="{{ index . "von" }}">{{ index . "von" | time | time.Format "January 2006" }}</time> bis <time datetime="{{ index . "bis" }}">{{ index . "bis" | time | time.Format "January 2006" }}</time></td>
|
||
|
{{ if index . "kommentar" }}
|
||
|
<td>{{ index . "kommentar" }}</td>
|
||
|
{{ end}}
|
||
|
</tr>
|
||
|
{{ end }}
|
||
|
</table>
|
||
|
{{ end }}
|
||
|
<h2>{{ i18n "arbeit" }}</h2>
|
||
|
{{ if $data.arbeit }}
|
||
|
<table>
|
||
|
{{ range sort $data.arbeit "von" "asc" }}
|
||
|
<tr>
|
||
|
<td>{{ index . "firma" }}</td>
|
||
|
{{ $bis := index . "bis" }}
|
||
|
{{ $bisd := now }}
|
||
|
{{ if (ne $bis "HEUTE") }}
|
||
|
{{ $bisd = $bis | time }}
|
||
|
{{ end }}
|
||
|
<td>{{ index . "job"}}</td>
|
||
|
<td>{{ index . "von" | time | time.Format "January 2006" }} bis {{ $bisd | time.Format "January 2006" }}</td>
|
||
|
{{ if index . "kommentar" }}
|
||
|
<td>{{ index . "kommentar" }}</td>
|
||
|
{{ end}}
|
||
|
</tr>
|
||
|
{{ end }}
|
||
|
</table>
|
||
|
{{ end }}
|