{{ $error := false }} {{ if partial "utilities/IsInvalidArgs.html" (dict "structure" "timeline" "args" .Params) }} {{ errorf "Invalid arguments: %s" .Position -}} {{ $error = true }} {{ end }} {{- $page := .Page -}} {{- $data := partial "utilities/GetI18nData.html" (dict "page" $page "data" (.Get "data"))}} {{ if not $data -}} {{ errorf "Invalid timeline data '%s': %s" .Get "data" .Position -}} {{ $error = true }} {{ end -}} {{ $background := .Get "background" | default "" -}} {{- $class := .Get "class" | default "" -}} {{- define "partials/timeline-icon.html" -}} {{- $col := default 6 .col -}} {{- $icon := .icon -}} {{- $direction := .direction -}}
{{ $datestr -}}
{{ end }}{{ $content | $page.RenderString }}