+ {{ partial "structure/article_meta" (dict "context" . "visible" "all") }}
+ {{ $small := "solo" }}
+ {{ $big := "solo" }}
+ {{ $placeholder := "/images/placeholder_article.jpg" }}
+ {{ $img := resources.Get $placeholder }}
+ {{- if or (.Resources.ByType "image") (.Content) ($img) -}}
+ {{ $small = "multiple_small" }}
+ {{ $big = "multiple_big" }}
+ {{ else }}
+ {{ $small = "multiple_big"}}
+ {{ end }}
+
- {{- end -}}
+
+ {{- if .Resources.ByType "image" -}}
{{- $pic := index (.Resources.ByType "image") 0 -}}
- {{- $thumb := $pic.Resize "1024x" }}
-
-
- {{- end }}
-
- {{ partial "contact.html" }}
- {{ .Content }}
+ {{- $thumb := $pic.Resize "2048x" }}
+ {{ if ne .Content "" }}
+ {{- $thumb = $pic.Resize "1024x" }}
+ {{ end }}
+
+
+
+ {{ else if $img }}
+ {{- $img = $img.Resize "1024x" }}
+
+
+
+ {{ end }}
+ {{- if .Content -}}
+
+ {{ partial "contact.html" }}
+ {{- .Content -}}
+
+ {{- end }}