{{ define "expo" }}
<div id="{{ lower .Title }}" class="expo site {{ lower .Title }}">
  <h1 id="title" class="site {{ lower .Title }}">{{ .Title }}</h1>
  <p id="summary" class="site {{ lower .Title }}">{{ .Content }}</p>
</div>
{{ end }}
{{ define "main" }}
<div id="{{ lower .Title }}" class="directory">
  {{ range .Data.Pages }}
    {{ if ne .Params.image nil }}
    {{ $path := print "." .Params.image }}
    <div style="background-image: linear-gradient(#121212, #121212), url({{ $path }});" class="category">
    {{ else }}
    <div style="background-image: linear-gradient(#121212, #121212);" class="category">
    {{ end }}
      <h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
      <!-- <img src="images/{{ lower .LinkTitle }}" alt=""> -->
      {{ with .Summary }}
        <p>{{ . }}</p>
      {{ end }}
    </div>
  {{ end }}
</div>
{{ end }}
