{{ partial "head.html" . }} {{ partial "nav.html" . }} {{ $projects := first 4 ((where (.Site.RegularPages.RelatedIndices . "services" ) "Type" "blogspot").ByLastmod ) }} {{ $numOfProjects := $projects | len}} {{ $contentClass := "s12 m9 l9" }} {{ if eq $numOfProjects 0 }} {{ $contentClass = "s12 m12 l12" }} {{ end }}

{{ .Title }}

{{ .Params.shortDescription }}

{{ if isset .Params "id" }} {{ partial .Params.id . }} {{ else }}
{{ if (fileExists (printf "assets/%s" (index .Params.images 0))) -}} {{ $mainimage := resources.Get (index .Params.images 0) }}

{{ end }}
{{ .Content }}
{{ if gt $numOfProjects 0 }}
{{ partial "widgets/servicesidebar.html" (dict "projects" $projects "service" .) }}
{{ end }}
{{ end }}
{{ partial "footer.html" . }}