{{ define "main" }}

{{ $page := . }}
{{ $banner := ($page.Resources.ByType "image").GetMatch "*-wd*" }}

<div class="page">
  <article>
    <h1 class="title">{{ .Title }}</h1>
     <div class="article-header">
        {{ with $.Params.photo }}<div class="photo" style="background-image: url('{{ .urlband }}');">{{ end }}</div>
        {{ with $.Params.photo }}<div class="photoCredit">{{ i18n "gorsel" }}<a href="{{ .urlband }}">{{ .author }}</a></div>
      </div>
      {{ end }}
    {{ .Content }}
  </article>
  <aside class="sidebar">
    <h2 class="title">{{ i18n "etkinlikler" }}</h2>
    {{ partial "events" . }}
  </aside>
</div>
{{ end }}
