{{ define "main" }} {{ $paginator := .Paginate .Data.Pages }}

Portfolio

{{- if .Content }}
{{ .Content }}
{{- end }} {{- if .Paginator.HasPrev }} {{ partial "pagination.html" . }} {{- end }}
{{ range $paginator.Pages }}

{{ .Title | markdownify }}

{{ .Params.company_name | markdownify }}
{{- if .Params.start_date }} {{- if eq (printf "%T" .Params.start_date) "time.Time"}} {{ .Params.start_date.Format ($.Site.Params.DateFormatList | default "2006-01-02") }} {{- else }} {{ .Params.start_date }} {{- end }} {{- if eq (printf "%T" .Params.end_date) "time.Time"}} {{ .Params.end_date.Format ($.Site.Params.DateFormatList | default "2006-01-02") }} {{- else }} {{ .Params.end_date }} {{- end }} {{- end }} {{- if $.Site.Params.ShowReadingTimeInList }} — {{ .ReadingTime }} {{ $.Site.Params.MinuteReadingTime | default "min read" }} {{- end }}
{{- if .Params.tags }} {{- range .Params.tags }} #{{ . }}  {{- end }} {{- end }}
{{- with .Description }} {{ . | markdownify }} {{- else }} {{- if .Truncated }} {{ .Summary | markdownify }} {{- end }} {{- end }}
{{- if not .Params.hideReadMore }}
{{ $.Site.Params.ReadMore | default "Read more" }} →
{{- end }}
{{- if .Params.Cover }}
{{- $img := imageConfig (printf "static/%s" .Params.Cover) }} {{- if .Params.UseRelativeCover }} {{ .Title | plainify | default {{- else }} {{ .Title | plainify | default {{- end }} {{- if .Params.CoverCaption }}
{{ .Params.CoverCaption | markdownify }}
{{- end }}
{{- end }}
{{- end }}
{{ partial "pagination.html" . }}
{{ end }}