forked from Bunteshaus/bunteshaus.de
25 lines
777 B
HTML
25 lines
777 B
HTML
{{ define "title" }}
|
|
{{ $name := "contact" }}
|
|
{{ if lower $name | i18n }}
|
|
{{ $name = lower $name | i18n }}
|
|
{{ end }}
|
|
<h1>{{ $name }}</h1>
|
|
{{ end }}
|
|
|
|
{{ define "main" }}
|
|
<div id="articledata">
|
|
{{- if ne .Section .Site.Params.hiddenfolder -}}
|
|
{{- if .Resources.ByType "image" -}}
|
|
<div id="articleimage">
|
|
{{- $pic := index (.Resources.ByType "image") 0 -}}
|
|
{{- $thumb := $pic.Resize "1024x" }}
|
|
<a href="{{ index (.Resources.ByType "image") 0 }}"><img src="{{- $thumb.Permalink -}}"/></a>
|
|
</div>
|
|
{{- end }}
|
|
<div id="articletext">
|
|
{{ partial "contact.html" }}
|
|
{{ .Content }}
|
|
</div>
|
|
</div>
|
|
{{- end -}}
|
|
{{ end }} |