{{ define "header"}}
    {{- partial "_shared/navbar.html" . -}}
{{ end }}

{{ define "main" }}

    <div class="main-content">

			{{ with .Site.GetPage "/categories/japan" }}
                {{ $post_paginator := .Paginate (.Pages) 12 }}
                {{ range $post_paginator.Pages }}


<div class="col-sm-4">
  <div class="mycard">
    <div class="image">


                {{$images := .Resources.ByType "image"}}
                {{with $images.GetMatch "*cover*" }}
				<a class="text-dark" href="{{ .Permalink }}">
                    <img src="{{ .Permalink }}" alt="A thumbnail image">
				</a>
                {{end}}                

    </div>
    <div class="mycard-inner">
      <div class="header">
<a class="text-dark" href="{{ .Permalink }}"><h6>{{ .Title }}</h6></a>
    </div>
	<div>
    <span class="post-date">{{ dateFormat "Jan 2, 2006" .PublishDate }}</span>
	</div>
      </div>
  </div>
</div>







      {{end}}



        {{- partial "list-partials/pagination.html" $post_paginator -}}

            {{end}}




    {{- partial "_shared/social.html" . -}}




{{end}}

{{ define "footer" }}
    {{- partial "_shared/footer.html" . -}}
{{end}}
