{{ define "main" }}
<section class="archive">
   <span class="list-title">{{if not (eq .Name "Blog" "Categories" "Tags") }}{{ .Name }}{{ end }}{{if eq .Name "Blog"}}全部のブログ{{ end }}{{if eq .Name "Categories"}}カテゴリー{{ end }}{{if eq .Name "Tags"}}タグ{{ end }} <a href="{{ .Permalink }}index.xml"><i class="fa fa-rss fa-2x fa-fw" aria-hidden="true" title="{{ .Name }} RSS feed"></i></a></span>
     <ul class="list-with-title">
       {{ if eq .Type "article" "blog"}}{{ range .Data.Pages.GroupByDate "2006" }}
       <span class="listing-title">{{ .Key }}</span>
       {{ range .Pages }}
       <ul class="listing">
         <li class="listing-item">
           {{ if eq .Type "article" "blog"}}
             <span class="listing-post"><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a>
               <time class="post-time"><span class="date">{{.Date.Format "Jan 2" }}</span></time>
             </span>
             {{end}}
           </li>
     </ul>{{ end }}{{end}}{{else}}
     {{ range .Pages }}
     <ul class="listing">
       <li class="listing-item">
           {{ if not (eq .Type "note" "photo") }}<span class="listing-post"><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</span>{{else}}
             <span class="listing-post"><a href="{{ .Permalink }}" title="{{ .Summary }}"><b>{{ humanize .Type }}:</b> {{ .Summary }}</span>{{end}}
         </li>
   </ul>{{ end }}
     {{ end }}
     </ul>
   </section>
 {{ end }}