45 lines
1.3 KiB
HTML
45 lines
1.3 KiB
HTML
<div id="articletitle">
|
|
<h1>{{- .Title -}}</h1>
|
|
</div>
|
|
{{- $pic := index (.Resources.ByType "image") 0 -}}
|
|
|
|
<article>
|
|
<div id="articlecontent">
|
|
{{ 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 }}
|
|
<div id="articleinner">
|
|
{{- if .Resources.ByType "image" -}}
|
|
{{- $pic := index (.Resources.ByType "image") 0 -}}
|
|
{{- $thumb := $pic.Resize "2048x" }}
|
|
{{ if ne .Content "" }}
|
|
{{- $thumb = $pic.Resize "1024x" }}
|
|
{{ end }}
|
|
<div id="articlepicture" class="{{ $small }} borderrad25">
|
|
<img src="{{- $thumb.Permalink -}}" class="borderrad25" />
|
|
</div>
|
|
{{ else if $img }}
|
|
{{- $img = $img.Resize "1024x" }}
|
|
<div id="articlepicture" class="{{ $small }} borderrad25">
|
|
<img src="{{- $img.Permalink -}}" class="borderrad25" />
|
|
</div>
|
|
{{ end }}
|
|
{{- if .Content -}}
|
|
<div id="articletext" class="{{ $big }}">
|
|
{{- .Content -}}
|
|
</div>
|
|
{{- end }}
|
|
</div>
|
|
</div>
|
|
</article>
|
|
|
|
|